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.
This commit is contained in:
arduino-man 2024-02-21 20:01:22 -07:00 committed by GitHub
parent 92f8e08aac
commit e5901b9f44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()