From 5e815acb157960f5850ec46d0dfbc6b9c53c7fb2 Mon Sep 17 00:00:00 2001 From: Prayag Jain Date: Tue, 31 Jan 2023 00:43:39 +0530 Subject: [PATCH] feat: profiles will now be listed in alphabetical order (#67) --- konsave/funcs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/konsave/funcs.py b/konsave/funcs.py index 2712010..033e398 100644 --- a/konsave/funcs.py +++ b/konsave/funcs.py @@ -153,6 +153,9 @@ def list_profiles(profile_list, profile_count): # assert assert os.path.exists(PROFILES_DIR) and profile_count != 0, "No profile found." + # sort in alphabetical order + profile_list.sort() + # run print("Konsave profiles:") print("ID\tNAME")