Module:CheckDataSorting

local utils = require("Module:TemplateUtils")

local cards = utils.RecreateTable(mw.loadData("Module:Data/Cards")) local otherCards = utils.RecreateTable(mw.loadData("Module:Data/OtherCards"))

local function CheckOrder(data) for i = 1, #data - 1 do		if cards[i].Name > cards[i + 1].Name then mw.log("Failed on|" .. cards[i].Name .. "|" .. cards[i+1].Name) end end end

mw.log("Data|Other Cards`") CheckOrder(otherCards) mw.log("Data|Cards") CheckOrder(cards)