From 2133fc84c4e604e9365e99ac8dd597c8fb499b92 Mon Sep 17 00:00:00 2001 From: ROllerozxa Date: Sat, 10 Sep 2022 12:20:33 +0200 Subject: [PATCH] Fix texture pack sorting in content tab (#12727) Co-authored-by: SmallJoker --- builtin/mainmenu/pkgmgr.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua index 9fa9aebb0..384870ae1 100644 --- a/builtin/mainmenu/pkgmgr.lua +++ b/builtin/mainmenu/pkgmgr.lua @@ -177,7 +177,7 @@ function pkgmgr.get_texture_packs() end table.sort(retval, function(a, b) - return a.name > b.name + return a.title:lower() < b.title:lower() end) return retval @@ -787,6 +787,9 @@ end -------------------------------------------------------------------------------- function pkgmgr.update_gamelist() pkgmgr.games = core.get_games() + table.sort(pkgmgr.games, function(a, b) + return a.title:lower() < b.title:lower() + end) end --------------------------------------------------------------------------------