Script::SortAuctionItems
function · ui · orchestration
- Address
0x4cfc00· 405 bytes, up to0x4cfd94- Signature
int __fastcall (lua_State *L)- Meaning
- Maps a sort name to a column and promotes it in the named list
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/auctionlists#sorting
Finding: Sorting in ui: auction lists, sorting and deposits
SortAuctionItems("type", "sort") matches the sort name without case: level 0, quality 1, bid 2, duration 3,
buyout 4, status 5, name 6, seller 7. An unmatched sort name or type sorts nothing. The column is searched in
the list's 8-slot key stack: at slot 0 its reversed flag toggles; at a lower slot it moves to slot 0 and keeps its flag;
absent, the stack is unchanged. The list is then sorted by qsort with all 8 keys in turn, each result negated when
its flag is set, and the list's update event is signalled. A list that has just arrived is sorted the same way once its
lookups are done.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- PromoteAuctionBrowseSortColumn ui
- PromoteAuctionOwnerSortColumn ui
- PromoteAuctionBidderSortColumn ui
- SStrCmpI storm
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.