benilla-re systems structs docs

CompareReputationHeaders

function · ui · orchestration

Address
0x4d5dc0 · 174 bytes, up to 0x4d5e6d
Signature
int __cdecl (void *a, void *b)
Meaning
Orders headers with children first, then by localized name, then by larger key
Confidence
verified, proof one
Finding
ui/reputation#sorting-and-counts
Test
ui::sortcmp_4d5dc0

Finding: Sorting and counts in ui: the reputation list

0x4d5c40 counts the children of each header (entries with the header's key and no header bit; an inactive entry counts under -1), sorts the header objects, then gives each entry its header's position in the sorted array. The visible count is the entry count less every child of a collapsed header and less every header with no children. The entries are sorted last and UPDATE_FACTION (372) is signalled. Headers with children come first, ordered by the localized name; a header without a row comes after one with a row; two without rows order by the larger key first. Rows order by header position, a collapsed child after everything, the header row before its children, then children by name.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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