Fix map finding #3

Merged
CoolestDoggo merged 1 commits from main into main 2022-09-10 23:31:52 +00:00
Showing only changes of commit 5a6b6ac82e - Show all commits

View File

@ -20,6 +20,11 @@ for _,game in next,API.GAMES do
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)
if i=='count' then return self.count end
if not tonumber(i) then