* Sorting

* Fix typo
This commit is contained in:
Joakim Sørensen
2020-03-29 12:45:14 +02:00
committed by GitHub
parent 60c7fe1574
commit 472bc4a2e3
11 changed files with 58 additions and 25 deletions
+11
View File
@@ -0,0 +1,11 @@
import json
categories = ["blacklist", "appdaemon", "integration", "netdaemon", "plugin", "python_script", "theme"]
for category in categories:
with open(category, "r") as cat_file:
content = json.loads(cat_file.read())
with open(category, "w") as cat_file:
cat_file.write(json.dumps(sorted(content, key=str.casefold), indent=2))