CompareGuildMembers
function · ui · primitive
- Address
0x4d0d50· 500 bytes, up to0x4d0f43- Signature
int32_t __cdecl (GuildMemberInfo **a, GuildMemberInfo **b)- Meaning
- Orders two roster members by the online pre-gate and the eight-slot sort chain
- Confidence
- verified, proof one
- Finding
- ui/guild#the-roster-order
- Test
ui::sortcmp_4d0d50
Finding: The roster order in ui: the guild roster and its Lua API
The array is sorted after every roster message and every sort change with the C runtime qsort
(0x73f727, element width 4, comparator 0x4d0d50), which is not stable. With show-offline off the comparator
puts online members before offline ones first. Then it walks the eight-slot chain {key, direction} and returns
the first nonzero result, negated when that slot's direction is 1. The keys, at direction 0: 0 rank, the higher
rank id first; 1 level, the lower first; 2 name, case-insensitive; 3 zone name and 4 class name in the client's
locale (a missing row ties); 5 group, which orders nothing; 6 online, then the smaller last-online
time first; 7 the public note. Equal members compare 0.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- GetGuildMemberPublicNote ui
- SStrCmpI storm
Calls and jumps by a bare address, from tables/calls.tsv.