From 960af446dc448c4b6f7e5549ca5bcb118f3f94fa Mon Sep 17 00:00:00 2001 From: hannah Date: Thu, 1 Jul 2021 16:04:19 -0400 Subject: [PATCH 1/3] case insensitive sort the package listing was sorting in a case sensitive way, which puts uppercase words before lowercase. --- python/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/build.py b/python/build.py index 75551be..6e1db04 100755 --- a/python/build.py +++ b/python/build.py @@ -39,7 +39,7 @@ pprint.pprint(packs) with all_path.open('w') as out: - for secname in sorted(packs.keys()): + for secname in sorted(packs.keys(), key=lambda x: x.lower()): packs_sec = sorted(packs[secname], key= lambda i: i['repo'].split('/')[1]) out.write(f' - name: {section_names[secname]}\n') From 7e5f7e18c7295da86d70fb8fa82e099ddd03c429 Mon Sep 17 00:00:00 2001 From: hannah Date: Thu, 1 Jul 2021 16:22:38 -0400 Subject: [PATCH 2/3] Update build.py --- python/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/build.py b/python/build.py index 6e1db04..7f2a939 100755 --- a/python/build.py +++ b/python/build.py @@ -39,8 +39,8 @@ pprint.pprint(packs) with all_path.open('w') as out: - for secname in sorted(packs.keys(), key=lambda x: x.lower()): - packs_sec = sorted(packs[secname], key= lambda i: i['repo'].split('/')[1]) + for secname in sorted(packs.keys()): + packs_sec = sorted(packs[secname], key= lambda i: i['repo'].split('/')[1].lower()) out.write(f' - name: {section_names[secname]}\n') out.write(f' packages:\n\n') From c95a90aa666c7f148f295dd2dc1a3bf6c277f6bb Mon Sep 17 00:00:00 2001 From: hannah Date: Thu, 1 Jul 2021 16:25:05 -0400 Subject: [PATCH 3/3] Update build.py --- python/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/build.py b/python/build.py index 7f2a939..f125398 100755 --- a/python/build.py +++ b/python/build.py @@ -40,7 +40,7 @@ with all_path.open('w') as out: for secname in sorted(packs.keys()): - packs_sec = sorted(packs[secname], key= lambda i: i['repo'].split('/')[1].lower()) + packs_sec = sorted(packs[secname], key=lambda i: i['repo'].split('/')[1].lower()) out.write(f' - name: {section_names[secname]}\n') out.write(f' packages:\n\n')