Revert "Fix map finding"

This commit is contained in:
tommy aka doge 2022-09-10 19:44:28 -04:00 committed by GitHub
parent bf71f90171
commit 1f94b8bc5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,11 +20,6 @@ for _,game in next,API.GAMES do
end end
end end
end end
table.sort(maps, function(a, b)
a = type(a) == 'table' and a or -1
b = type(b) == 'table' and b or -1
return #a.DisplayName < #b.DisplayName
end)
setmetatable(maps,{__index=function(self,i) setmetatable(maps,{__index=function(self,i)
if i=='count' then return self.count end if i=='count' then return self.count end
if not tonumber(i) then if not tonumber(i) then