benilla-re systems structs docs

CompareTradeSkillRows

function · ui · primitive

Address
0x4fd380 · 442 bytes, up to 0x4fd539
Meaning
Orders profession rows by visibility, header, bucket, item field and name
Confidence
verified, proof one
Finding
tradeskill/recipes#row-order
Test
ui::sortcmp_4fd380

Finding: Row order in tradeskill: recipes

The row comparator 0x4fd380 puts the rows that are visible and in a shown group first; two hidden rows compare equal. Among the others it orders by the position of the group in the header array, the header row before its recipes, difficulty ascending, item level descending, and the localized spell name (+0x1e0 plus 4 for the locale) case-blind. Two recipes of equal difficulty, level and name compare equal. A pair with a missing spell record compares equal.

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.