From b2be7b51814a4354307e8f0a0df0c8885ef73bb0 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Mon, 5 Feb 2018 18:22:19 +0100 Subject: [PATCH] Sort tags when serializing them --- lib/galaxy/managers/taggable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/managers/taggable.py b/lib/galaxy/managers/taggable.py index edee585460ed..dc4508abefac 100644 --- a/lib/galaxy/managers/taggable.py +++ b/lib/galaxy/managers/taggable.py @@ -24,7 +24,7 @@ def _tag_str_gen(item): def _tags_to_strings(item): if not hasattr(item, 'tags'): return None - return list(_tag_str_gen(item)) + return sorted(list(_tag_str_gen(item))) def _tags_from_strings(item, tag_handler, new_tags_list, user=None):