Fix texture pack sorting in content tab (#12727)

Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
ROllerozxa 2022-09-10 12:20:33 +02:00 committed by GitHub
parent 643971c948
commit 2133fc84c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------