mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Fix texture pack sorting in content tab (#12727)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
parent
643971c948
commit
2133fc84c4
1 changed files with 4 additions and 1 deletions
|
@ -177,7 +177,7 @@ function pkgmgr.get_texture_packs()
|
||||||
end
|
end
|
||||||
|
|
||||||
table.sort(retval, function(a, b)
|
table.sort(retval, function(a, b)
|
||||||
return a.name > b.name
|
return a.title:lower() < b.title:lower()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
return retval
|
return retval
|
||||||
|
@ -787,6 +787,9 @@ end
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
function pkgmgr.update_gamelist()
|
function pkgmgr.update_gamelist()
|
||||||
pkgmgr.games = core.get_games()
|
pkgmgr.games = core.get_games()
|
||||||
|
table.sort(pkgmgr.games, function(a, b)
|
||||||
|
return a.title:lower() < b.title:lower()
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue