Skip to content

Commit

Permalink
Don't rely on order of unordered collections
Browse files Browse the repository at this point in the history
  • Loading branch information
iantruslove committed Aug 17, 2015
1 parent cf87bc8 commit 7bde621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static/core.clj
Expand Up @@ -146,7 +146,7 @@
(if (string? tags) (clojure.string/split tags #" " ) tags)))
page-tags (tagfn (str (:tags m) " " (:keywords m)))
site-tags (tagfn (:site-default-keywords (static.config/config)))
merge-tags (vec (into #{} (if (> (count page-tags) 0) (apply conj site-tags page-tags) site-tags )))
merge-tags (vec (sort (into #{} (if (> (count page-tags) 0) (apply conj site-tags page-tags) site-tags))))
tagstring (clojure.string/join ", " merge-tags)
;; we also need the complete list of posts with their tags
files (list-files :posts)
Expand Down

0 comments on commit 7bde621

Please sign in to comment.