Script::SortWho
function · net · orchestration
- Address
0x5ad890· 364 bytes, up to0x5ad9fb- Signature
int __fastcall (lua_State *L)- Meaning
- Moves a sort key to the front of the who sort chain, flipping it if already first, then sorts and fires WHO_LIST_UPDATE
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- net/who#who-sort-keys
Finding: Who sort keys in net: who
SortWho(type) maps the text, without case, to a key: name 4, level 1, class 2, group 3, race 5, zone 0, guild 6, and any other text to 4. It moves that key to the front of a seven-slot chain of key and direction pairs. The direction flips only when the key was already first; otherwise it keeps the direction it had and the earlier slots shift down. It then sorts the kept results with qsort and fires WHO_LIST_UPDATE before it returns. The chain starts as keys 0 to 6 with direction 0, set again at each world entry.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- SStrCmpI storm
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
- FrameScript_SignalEvent ui
- _qsort crt
Calls and jumps by a bare address, from tables/calls.tsv.