fixed rarity all not being selectable and sorting bug with full mode

This commit is contained in:
Manuel Simon Hirsig
2015-10-23 23:18:03 +02:00
parent 2de27258f9
commit beb8018f0a
3 changed files with 126 additions and 48 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ function Aux.list.sort(sheet, column_index)
local column = sheet.columns[column_index]
if sheet.sort_order[1].column == column then
if sheet.sort_order[1] and sheet.sort_order[1].column == column then
sheet.sort_order[1].sort_ascending = not sheet.sort_order[1].sort_ascending
else
sheet.sort_order = Aux.util.filter(sheet.sort_order, function(sort_info) return not sort_info.column == column end)