albion-shit/___quick.py
2020-05-28 09:15:38 -03:00

15 lines
275 B
Python

import json
from collections import OrderedDict
with open("items.json", "r") as file:
this = json.load(file)
keys = sorted(this.keys())
newthis = OrderedDict()
for i in keys:
newthis[i] = this[i]
with open("items.json", "w") as file:
json.dump(newthis, file)