From 671dccc07c7df3e417e5bdce1101b9f0decada01 Mon Sep 17 00:00:00 2001 From: Parziphal Date: Sun, 3 Nov 2013 14:25:22 -0500 Subject: [PATCH] sort cached_tags before saving --- app/models/Post/TagMethods.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/Post/TagMethods.php b/app/models/Post/TagMethods.php index ee0a6c5..4c60029 100755 --- a/app/models/Post/TagMethods.php +++ b/app/models/Post/TagMethods.php @@ -313,6 +313,7 @@ trait PostTagMethods // $this->tags = implode(' ', array_unique(TagImplication::with_implied(TagAlias::to_aliased($this->new_tags)))); $this->new_tags = TagAlias::to_aliased($this->new_tags); $this->new_tags = array_unique(TagImplication::with_implied($this->new_tags)); + sort($this->new_tags); // $this->tags = implode(' ', $this->tags()); # TODO: be more selective in deleting from the join table