performance improvement
This commit is contained in:
+9
-9
@@ -148,20 +148,20 @@ function update_auction_listing()
|
||||
end
|
||||
sort(auction_rows, function(a, b)
|
||||
return sorting.multi_lt(
|
||||
temp-A(
|
||||
a.record.unit_buyout_price == 0 and huge or a.record.unit_buyout_price,
|
||||
b.record.unit_buyout_price == 0 and huge or b.record.unit_buyout_price,
|
||||
|
||||
a.record.unit_blizzard_bid,
|
||||
b.record.unit_blizzard_bid,
|
||||
|
||||
a.record.stack_size,
|
||||
b.record.stack_size,
|
||||
|
||||
b.record.own and 1 or 0,
|
||||
a.record.duration
|
||||
),
|
||||
temp-A(
|
||||
b.record.unit_buyout_price == 0 and huge or b.record.unit_buyout_price,
|
||||
b.record.unit_blizzard_bid,
|
||||
b.record.stack_size,
|
||||
a.record.own and 1 or 0,
|
||||
a.record.own and 1 or 0,
|
||||
|
||||
a.record.duration,
|
||||
b.record.duration
|
||||
)
|
||||
)
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user