forked from Mirrorlandia_minetest/minetest
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
@ -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…
Reference in New Issue
Block a user