benilla-re systems structs docs

CompareQuestLogRows

function · ui · primitive

Address
0x4deac0 · 622 bytes, up to 0x4ded2d
Meaning
Orders two rows: collapsed quests last, then group, header, level, then title
Confidence
verified, proof one
Finding
ui/questlog#the-order-of-the-rows
Test
ui::sortcmp_4deac0

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.