benilla-re systems structs docs

CompareAuctionRows

function · ui · primitive

Address
0x4cd940 · 773 bytes, up to 0x4cdc44
Signature
int __fastcall (void *a, void *b, uint32_t mode)
Meaning
Compares two auction rows by one of the 8 sort columns, 0 when equal or uncached
Confidence
verified, proof one
Finding
ui/auctionlists#sort-columns
Test
ui::sortcmp_4cd940

Finding: Sort columns in ui: auction lists, sorting and deposits

The comparator 0x4cd940 returns 0 for equal keys and for a row whose item record is not cached, and otherwise: level (item level requirement, at least 1) lowest first; quality highest first; bid (current bid, or the minimum bid when no bid) lowest first; duration (deadline) soonest first; buyout (unsigned) highest first; status (2 for your own bid, 1 for another's, 0 for none) your bid first; name (the item template name, not the displayed name) A to Z without case; seller (the owner's cached name) A to Z, a seller whose name is unknown last. Each is the order at reversed = 0.

The derivation is in the doc.

Callers 3

Callees 4

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