diff --git a/storage/tags.go b/storage/tags.go index 4c47506..7b06407 100644 --- a/storage/tags.go +++ b/storage/tags.go @@ -22,6 +22,8 @@ func SetTags(id string, tags []string) error { } } + sort.Strings(applyTags) + tagJSON, err := json.Marshal(applyTags) if err != nil { logger.Log().Errorf("[db] setting tags for message %s", id)