Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profile
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-09-21 19:48:49 +1000
committerGitHub <noreply@github.com>2023-09-21 19:48:49 +1000
commitc75ae97f007f7f7d1d8921e1bd38bcc01b6035f1 (patch)
tree1f4d9018790360d5c8295bda28c51357bdf1460d /archinstall/lib/profile
parent0e93d5b468291bccd4d4df9b07cffa1ccf7bb21e (diff)
Sort the profiles with ignore case (#2080)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/profile')
-rw-r--r--archinstall/lib/profile/profiles_handler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/profile/profiles_handler.py b/archinstall/lib/profile/profiles_handler.py
index 07910b08..7810db2f 100644
--- a/archinstall/lib/profile/profiles_handler.py
+++ b/archinstall/lib/profile/profiles_handler.py
@@ -371,6 +371,7 @@ class ProfileHandler:
Helper function to perform a profile selection
"""
options = {p.name: p for p in selectable_profiles}
+ options = dict((k, v) for k, v in sorted(options.items(), key=lambda x: x[0].upper()))
warning = str(_('Are you sure you want to reset this setting?'))
@@ -388,7 +389,7 @@ class ProfileHandler:
allow_reset=allow_reset,
allow_reset_warning_msg=warning,
multi=multi,
- sort=True,
+ sort=False,
preview_command=self.preview_text,
preview_size=0.5
).run()