s_guildSortKeyArms
global · ui
- Address
0x4d0f44· 32 bytes, up to0x4d0f63- Type
void *[8]- Meaning
- Holds the eight case addresses of the comparator's key switch
- Confidence
- verified, proof one
- Finding
- ui/guild#the-roster-order
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.