From 4d6ef6a07b6b45d749d8f5841ae5e2ea0fbffa5b Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Sat, 10 Nov 2018 01:05:31 +0100 Subject: [PATCH] locations are returned alphabetically --- parts/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/server.py b/parts/server.py index cdbcaec..3a7bea9 100644 --- a/parts/server.py +++ b/parts/server.py @@ -49,7 +49,7 @@ def index(): @app.route('/parts/getlocations/') def get_locations(): - s = 'select id, name from locations' + s = 'select id, name from locations order by name;' r = db_engine.execute(text(s)) l = {} for row in r: