Skip to content

Commit

Permalink
Sort by icon name
Browse files Browse the repository at this point in the history
  • Loading branch information
shindgewongxj authored Aug 14, 2024
1 parent 0c3ab5b commit f348d06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generate_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ def generate_json(folder_path, repo_name, branch_name):
"name": os.path.splitext(filename)[0],
"url": icon_url
})


# Sort the icons list by the 'name' key
icons.sort(key=lambda x: x['name'].lower())

return {
"name": f"WHATSINStach {folder_name.capitalize()}",
"description": f"{folder_name.capitalize()} iconset",
Expand Down

0 comments on commit f348d06

Please sign in to comment.