diff --git a/site/modules/gamelist.py b/site/modules/gamelist.py index 4070f56..1c08a1f 100644 --- a/site/modules/gamelist.py +++ b/site/modules/gamelist.py @@ -24,6 +24,9 @@ def gamelist(lang_code): glist = json.loads((requests.get( host_endpoint + '/gamelist').content).decode()) + # Sorting list alphabetically + glist = sorted(glist, key=lambda d: d['game']['title']) + return render_template('gamelist.html', gamelist=glist, **languages[lang_code], lang_code=lang_code)