From e5901b9f448939e1c871f3583a302e183ec6a7f7 Mon Sep 17 00:00:00 2001 From: arduino-man Date: Wed, 21 Feb 2024 20:01:22 -0700 Subject: [PATCH] Alphabetically sort patterns list Ensures that when the users lists the available patterns, they are presented in alphabetical order. Helps find the desired pattern faster. --- installer/client/cli/fabric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/client/cli/fabric.py b/installer/client/cli/fabric.py index b4bac40..89f8be1 100755 --- a/installer/client/cli/fabric.py +++ b/installer/client/cli/fabric.py @@ -78,7 +78,7 @@ def main(): standalone = Standalone(args, args.pattern) if args.list: try: - direct = os.listdir(config_patterns_directory) + direct = sorted(os.listdir(config_patterns_directory)) for d in direct: print(d) sys.exit()