Skip to content

Commit

Permalink
Sort tags when serializing them
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Feb 6, 2018
1 parent b114f3f commit b2be7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/managers/taggable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b2be7b5

Please sign in to comment.