sorting fix

This commit is contained in:
Manuel Simon Hirsig
2016-02-22 16:06:23 +01:00
parent a3ef9a2969
commit 05b272444f
+7 -2
View File
@@ -302,8 +302,13 @@ local methods = {
aVal = self:GetRecordPercent(record_a)
bVal = self:GetRecordPercent(record_b)
elseif sortKey == 'numAuctions' then
aVal = a.totalAuctions
bVal = b.totalAuctions
if a.children then
aVal = a.totalAuctions
bVal = b.totalAuctions
else
aVal = a.numAuctions
bVal = b.numAuctions
end
elseif sortKey == 'unit_bid_price' or sortKey == 'bid_price' then
aVal = self.GetRowPrices(record_a, sortKey == 'unit_bid_price')
bVal = self.GetRowPrices(record_b, sortKey == 'unit_bid_price')