From a224297c4fd5be2a3f4ea7f573be4a366ab40bc8 Mon Sep 17 00:00:00 2001 From: rr- Date: Mon, 15 Aug 2016 18:08:19 +0200 Subject: [PATCH] server/db: poor fix for tag aliases' order It's a hack, but it seems to work okay. --- server/szurubooru/db/tag.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/szurubooru/db/tag.py b/server/szurubooru/db/tag.py index 2bdac536..5dae8c8b 100644 --- a/server/szurubooru/db/tag.py +++ b/server/szurubooru/db/tag.py @@ -100,6 +100,7 @@ class Tag(Base): first_name = column_property( select([TagName.name]) .where(TagName.tag_id == tag_id) + .order_by(TagName.tag_name_id) .limit(1) .as_scalar(), deferred=True)