@@ -268,15 +268,15 @@ You can click this button to enter your POESESSID.
268
268
on trade site to work on other leagues and realms)]]
269
269
self .sortModes = {
270
270
DPS = " DPS" ,
271
- DPSPRICE = " DPS / Price" ,
272
- PRICEASC = " Price (Lowest)" ,
271
+ DPS_PRICE = " DPS / Price" ,
272
+ PRICE_ASCENDING = " Price (Lowest)" ,
273
273
WEIGHT = " Weighted Sum" ,
274
274
}
275
275
-- Item sort dropdown
276
276
self .sortSelectionList = {
277
277
self .sortModes .DPS ,
278
- self .sortModes .DPSPRICE ,
279
- self .sortModes .PRICEASC ,
278
+ self .sortModes .DPS_PRICE ,
279
+ self .sortModes .PRICE_ASCENDING ,
280
280
self .sortModes .WEIGHT ,
281
281
}
282
282
self .controls .itemSortSelection = new (" DropDownControl" , {" TOPRIGHT" , nil , " TOPRIGHT" }, - 12 , 19 , 100 , 18 , self .sortSelectionList , function (index , value )
@@ -538,7 +538,7 @@ function TradeQueryClass:SortFetchResults(slotTbl, trade_index, mode)
538
538
t_insert (newTbl , { outputAttr = dps , index = index })
539
539
end
540
540
table.sort (newTbl , function (a ,b ) return a .outputAttr > b .outputAttr end )
541
- elseif mode == self .sortModes .DPSPRICE then
541
+ elseif mode == self .sortModes .DPS_PRICE then
542
542
local dpsTable = getDpsTable ()
543
543
local priceTable = getPriceTable ()
544
544
if priceTable == nil then
@@ -548,7 +548,7 @@ function TradeQueryClass:SortFetchResults(slotTbl, trade_index, mode)
548
548
t_insert (newTbl , { outputAttr = dps / priceTable [index ], index = index })
549
549
end
550
550
table.sort (newTbl , function (a ,b ) return a .outputAttr > b .outputAttr end )
551
- elseif mode == self .sortModes .PRICEASC then
551
+ elseif mode == self .sortModes .PRICE_ASCENDING then
552
552
local priceTable = getPriceTable ()
553
553
if priceTable == nil then
554
554
return nil , " MissingConversionRates"
0 commit comments