2,875
edits
mNo edit summary |
mNo edit summary |
||
Line 801: | Line 801: | ||
-- Retrieve numeric level value for sorting, or remove anything between [[]] | -- Retrieve numeric level value for sorting, or remove anything between [[]] | ||
local levelValue = level:match("Level (%d+)") | local levelValue = level:match("Level (%d+)") | ||
if not levelValue then levelValue = level:match("%[%[.-%]%]%s*(%w+)$") end | if not levelValue then levelValue = level:match("%[%[.-%]%]%s*(%w+)$") or "" end | ||
table.insert(rowPart, '\r\n|style="text-align: left;" data-sort-value="'..levelValue..'"|'..expIcon.. level) | table.insert(rowPart, '\r\n|style="text-align: left;" data-sort-value="'..levelValue..'"|'..expIcon.. level) | ||
table.insert(rowPart, '\r\n|style="text-align: right;" data-sort-value="'..qty..'"|'..Shared.formatnum(minqty)) | table.insert(rowPart, '\r\n|style="text-align: right;" data-sort-value="'..qty..'"|'..Shared.formatnum(minqty)) |
edits