improved sorting in the post tab
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Aux = {
|
||||
version = '2.6.3',
|
||||
version = '2.6.4',
|
||||
blizzard_ui_shown = false,
|
||||
orig = {},
|
||||
}
|
||||
|
||||
+8
-1
@@ -118,7 +118,14 @@ function private.update_auction_listing()
|
||||
record = auction_record,
|
||||
})
|
||||
end
|
||||
sort(auction_rows, function(a, b) return Aux.sort.multi_lt(a.record.unit_buyout_price, b.record.unit_buyout_price, tostring(a.record), tostring(b.record)) end)
|
||||
sort(auction_rows, function(a, b) return Aux.sort.multi_lt(
|
||||
a.record.unit_buyout_price, b.record.unit_buyout_price,
|
||||
a.record.unit_blizzard_bid, b.record.unit_blizzard_bid,
|
||||
a.record.stack_size, b.record.stack_size,
|
||||
a.record.count - a.record.yours, b.record.count - b.record.yours,
|
||||
b.record.yours, a.record.yours,
|
||||
a.record.duration, b.record.duration
|
||||
) end)
|
||||
end
|
||||
private.auction_listing:SetData(auction_rows)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user