From 382ab969d4de29cd5f74db2de433a37254d40d2a Mon Sep 17 00:00:00 2001 From: "jeanpatrick.guerrero@gmail.com" Date: Fri, 25 Dec 2015 22:10:29 +0100 Subject: Alphabetical sorting of texture packs in menu (fixes #3487) --- builtin/mainmenu/tab_texturepacks.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'builtin/mainmenu') diff --git a/builtin/mainmenu/tab_texturepacks.lua b/builtin/mainmenu/tab_texturepacks.lua index 5514d31f9..d8b9ba35f 100644 --- a/builtin/mainmenu/tab_texturepacks.lua +++ b/builtin/mainmenu/tab_texturepacks.lua @@ -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 -- cgit v1.2.3