mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-05 04:08:21 +02:00
sorted tracks in alphabetical order
This commit is contained in:
parent
0a87ef6f5d
commit
0c6bc45901
2 changed files with 703 additions and 694 deletions
1387
ct_config.json
1387
ct_config.json
File diff suppressed because it is too large
Load diff
10
scripts/sort_tracks_abc.py
Normal file
10
scripts/sort_tracks_abc.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
import json
|
||||
|
||||
with open("../ct_config.json", encoding="utf8", mode="r") as file:
|
||||
ct_config = json.load(file)
|
||||
|
||||
get_key = lambda track: track["name"]
|
||||
ct_config["tracks_list"].sort(key=get_key)
|
||||
|
||||
with open("../ct_config.json", encoding="utf8", mode="w") as file:
|
||||
json.dump(ct_config, file, ensure_ascii=False)
|
Loading…
Reference in a new issue