diff --git a/src/modules/commands/maps_init.lua b/src/modules/commands/maps_init.lua index 1b903ed..ca0850f 100644 --- a/src/modules/commands/maps_init.lua +++ b/src/modules/commands/maps_init.lua @@ -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