Module:RaritySort: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
local p = {}
local p = {}


function p.getSortValue(rarity)
function p.getSortValue(frame)
    local rarity = frame.args[1]
 
     if rarity == nil or type(rarity) ~= "string" then
     if rarity == nil or type(rarity) ~= "string" then
         return "was nil or not string"
         return "was nil or not string"