FANDOM


local p = {}
 
   local month = {
      ["January"]   = "01",
      ["February"]  = "02",
      ["March"]     = "03",
      ["April"]     = "04",
      ["May"]       = "05",
      ["June"]      = "06",
      ["July"]      = "07",
      ["August"]    = "08",
      ["September"] = "09",
      ["October"]   = "10",
      ["November"]  = "11",
      ["December"]  = "12",
   }
 
--if nil return ""
function p.denil (x, y)
   return x or y or ""
end
 
local cln = p.denil
 
local p = {}
   local month = {
      ["January"]   = "01",
      ["February"]  = "02",
      ["March"]     = "03",
      ["April"]     = "04",
      ["May"]       = "05",
      ["June"]      = "06",
      ["July"]      = "07",
      ["August"]    = "08",
      ["September"] = "09",
      ["October"]   = "10",
      ["November"]  = "11",
      ["December"]  = "12",
   }
 
function p.sortkey(frame)
   local x=frame.args[1]
   x=cln(string.match(x,"%d+"),"0000")..cln(month[string.match(x,"%w+")],"00")
   return x
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.