CompareReputationRows
function · ui · primitive
- Address
0x4d5e70· 289 bytes, up to0x4d5f90- Signature
int __cdecl (void *a, void *b)- Meaning
- Orders rows by header position, collapsed children last, header row first, then name
- Confidence
- verified, proof one
- Finding
- ui/reputation#sorting-and-counts
- Test
ui::sortcmp_4d5e70
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
- SStrCmpI storm
Calls and jumps by a bare address, from tables/calls.tsv.