Sort the map correctly

This commit is contained in:
oakes
2014-08-09 20:11:03 -04:00
parent f8ce6e15d0
commit a1ac0cf8da
2 changed files with 2 additions and 2 deletions

View File

@@ -152,7 +152,8 @@
(map marg/path-to-doc)
(map #(process-groups % java-docs))
(apply concat)
(group-by :ns)))
(group-by :ns)
(into (sorted-map))))
(defn save!
[parsed-files]

View File

@@ -105,7 +105,6 @@
(create-embed-file (content group)))))
(spit (io/file dir "index.edn")
(->> parsed-files
sort
(map (fn [[ns groups]]
(for [{:keys [name]} groups]
{:ns ns