Skip to content

Commit

Permalink
feat: profiles will now be listed in alphabetical order (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prayag2 committed Jan 30, 2023
1 parent 8a74fd2 commit 5e815ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions konsave/funcs.py
Expand Up @@ -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")
Expand Down

0 comments on commit 5e815ac

Please sign in to comment.