From 9b3bc70a6b648645e7e2443cb30e45c6f6c2b710 Mon Sep 17 00:00:00 2001 From: odudex Date: Mon, 9 Dec 2024 22:37:23 -0300 Subject: [PATCH] sort stored mnemonics --- src/krux/pages/encryption_ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/krux/pages/encryption_ui.py b/src/krux/pages/encryption_ui.py index f63571bd..0aa527e6 100644 --- a/src/krux/pages/encryption_ui.py +++ b/src/krux/pages/encryption_ui.py @@ -238,7 +238,7 @@ def load_from_storage(self, remove_opt=False): sd_mnemonics = mnemonic_storage.list_mnemonics(sd_card=True) del mnemonic_storage - for mnemonic_id in mnemonics: + for mnemonic_id in sorted(mnemonics): mnemonic_ids_menu.append( ( mnemonic_id + "(flash)", @@ -249,7 +249,7 @@ def load_from_storage(self, remove_opt=False): ), ) ) - for mnemonic_id in sd_mnemonics: + for mnemonic_id in sorted(sd_mnemonics): mnemonic_ids_menu.append( ( mnemonic_id + "(SD card)",