[cli] Sort savegames by manifest and app name

This commit is contained in:
derrod 2020-05-12 02:22:10 +02:00
parent 8ae0fff1d7
commit f9d56b8d0d

View file

@ -206,7 +206,7 @@ class LegendaryCLI:
saves = self.core.get_save_games(args.app_name) saves = self.core.get_save_games(args.app_name)
last_app = '' last_app = ''
print('Save games:') print('Save games:')
for save in sorted(saves, key=lambda a: a.app_name): for save in sorted(saves, key=lambda a: a.app_name + a.manifest_name):
if save.app_name != last_app: if save.app_name != last_app:
game_title = self.core.get_game(save.app_name).app_title game_title = self.core.get_game(save.app_name).app_title
last_app = save.app_name last_app = save.app_name