Skip to content

Commit

Permalink
Fix texture pack sorting in content tab (minetest#12727)
Browse files Browse the repository at this point in the history
Co-authored-by: SmallJoker <[email protected]>
  • Loading branch information
rollerozxa and SmallJoker committed Sep 10, 2022
1 parent 643971c commit 2133fc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builtin/mainmenu/pkgmgr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

--------------------------------------------------------------------------------
Expand Down

0 comments on commit 2133fc8

Please sign in to comment.