sort order needs also change in basic controller for existing data

This commit is contained in:
avollkopf 2022-04-11 10:15:08 +02:00
parent 9ac0141e4d
commit d63bbbb887
2 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,3 @@
__version__ = "4.0.5.a8"
__version__ = "4.0.5.a9"
__codename__ = "Spring Break"

View file

@ -36,6 +36,7 @@ class BasicController:
logging.info("{} Load ".format(self.name))
with open(self.path) as json_file:
data = json.load(json_file)
data['data'].sort(key=lambda x: x.get('name').upper())
for i in data["data"]:
self.data.append(self.create(i))