Skip to content

Commit

Permalink
Alphabetical sorting of texture packs in menu (fixes #3487)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanpatrick.guerrero@gmail.com authored and est31 committed Dec 26, 2015
1 parent e834e83 commit 382ab96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion builtin/mainmenu/tab_texturepacks.lua
Expand Up @@ -17,12 +17,16 @@

--------------------------------------------------------------------------------
local function filter_texture_pack_list(list)
local retval = {fgettext("None")}
local retval = {}
for _, item in ipairs(list) do
if item ~= "base" then
table.insert(retval, item)
end
end

table.sort(retval)
table.insert(retval, 1, fgettext("None"))

return retval
end

Expand Down

0 comments on commit 382ab96

Please sign in to comment.