benilla-re systems structs docs

CompareTrainerGroups

function · ui · orchestration

Address
0x4d7b90 · 153 bytes, up to 0x4d7c28
Signature
int __cdecl (void **a, void **b)
Meaning
Orders trainer group headers, the known group first, then by skill line name
Confidence
verified, proof one
Finding
ui/trainerlist#row-order

Finding: Row order in ui: trainer states, filters and order

The row comparator is chosen by the trainer type (0x4d8561): type 1 uses 0x4d8850, type 2 0x4d8760, anything else (classes, pets) 0x4d85c0. Each starts with the visible flag (visible first) and ends with the localized spell name, case-sensitively. The class comparator then orders by group position, the header row first, required level, required skill value, name, then rank text. The mount comparator uses group position, header first, state ascending, then name. The tradeskill comparator uses the group key, the header first, required skill value, then name; it has no level, state or rank key. Headers sort by 0x4d7c30 (the key) for type 2, else 0x4d7b90.

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.