73
edits
No edit summary |
No edit summary |
||
Line 41: | Line 41: | ||
-- Sort the list of items by level requirement | -- Sort the list of items by level requirement | ||
table.sort(itemList, function(a, b) | table.sort(itemList, function(a, b) | ||
return a.skillLevel < b.skillLevel | return a.skillLevel < b.skillLevel or (a.skillLevel == b.skillLevel and a.item.name < b.item.name) | ||
end) | end) | ||
Line 67: | Line 67: | ||
-- Append item to the column | -- Append item to the column | ||
table.insert(resultPart, Icons.Icon({item.item.name, type='item' | table.insert(resultPart, Icons.Icon({item.item.name, type='item'})) | ||
end | end | ||
edits