benilla-re systems structs docs

CompareQuestHeaderIds

function · ui · primitive

Address
0x4de8f0 · 350 bytes, up to 0x4dea4d
Meaning
Orders two header ids by collated name, an id of 0 first
Confidence
verified, proof one
Finding
ui/questlog#the-order-of-the-rows
Test
ui::sortcmp_4de8f0

Finding: The order of the rows in ui: the quest log list

The group ids are sorted first, by the case-insensitive collated localized name of the zone (AreaTable name for an id above 0, QuestSort name for an id below 0), with id 0 first and unresolved names next. Rows are then sorted by: quests of collapsed groups last; group position; a header before its quests; level ascending; title collated without case. The comparator never sees the quest slot, and qsort is not stable, so full ties land in an unspecified order.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.