benilla-re systems structs docs

CompareAuctionOwnerRows

function · ui · primitive

Address
0x4cdd00 · 84 bytes, up to 0x4cdd53
Signature
int __cdecl (void **a, void **b)
Meaning
Compares two owner rows by the 8 sort keys in turn, negating a reversed key
Confidence
verified, proof one
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 1

Calls and jumps by a bare address, from tables/calls.tsv.