From 467b4a76308b2fc4478dd3586e6339c88cc499b2 Mon Sep 17 00:00:00 2001 From: rr- Date: Mon, 24 Apr 2017 22:48:11 +0200 Subject: [PATCH] server/tags: fix nondeterministic siblings order --- server/szurubooru/func/tags.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/szurubooru/func/tags.py b/server/szurubooru/func/tags.py index 8afb26f..32abe94 100644 --- a/server/szurubooru/func/tags.py +++ b/server/szurubooru/func/tags.py @@ -256,6 +256,7 @@ def get_tag_siblings(tag: model.Tag) -> List[model.Tag]: .filter(pt_alias1.tag_id != tag.tag_id) .group_by(tag_alias.tag_id) .order_by(sa.func.count(pt_alias2.post_id).desc()) + .order_by(tag_alias.first_name) .limit(50)) return result