mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
10 lines
347 B
Python
10 lines
347 B
Python
import json
|
|
|
|
with open("../Pack/MKWFaraphel/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("../Pack/MKWFaraphel/ct_config.json", encoding="utf8", mode="w") as file:
|
|
json.dump(ct_config, file, ensure_ascii=False)
|