From c75ae97f007f7f7d1d8921e1bd38bcc01b6035f1 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Thu, 21 Sep 2023 19:48:49 +1000 Subject: Sort the profiles with ignore case (#2080) Co-authored-by: Daniel Girtler --- archinstall/lib/profile/profiles_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archinstall/lib/profile') 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() -- cgit v1.2.3-54-g00ecf