From ba867f1ce64f81e566b53a536d8658aa009d62a0 Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 23 Dec 2020 18:04:53 +0100 Subject: [PATCH] [cli] Sort game names case-insensitively --- legendary/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index 527cf52..999492c 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -147,9 +147,9 @@ class LegendaryCLI: platform_override=args.platform_override, skip_ue=not args.include_ue ) # sort games and dlc by name - games = sorted(games, key=lambda x: x.app_title) + games = sorted(games, key=lambda x: x.app_title.lower()) for citem_id in dlc_list.keys(): - dlc_list[citem_id] = sorted(dlc_list[citem_id], key=lambda d: d.app_title) + dlc_list[citem_id] = sorted(dlc_list[citem_id], key=lambda d: d.app_title.lower()) if args.csv or args.tsv: writer = csv.writer(stdout, dialect='excel-tab' if args.tsv else 'excel') @@ -187,7 +187,7 @@ class LegendaryCLI: self.core.get_assets(True) games = sorted(self.core.get_installed_list(), - key=lambda x: x.title) + key=lambda x: x.title.lower()) versions = dict() for game in games: