Sort the map correctly
This commit is contained in:
@@ -152,7 +152,8 @@
|
|||||||
(map marg/path-to-doc)
|
(map marg/path-to-doc)
|
||||||
(map #(process-groups % java-docs))
|
(map #(process-groups % java-docs))
|
||||||
(apply concat)
|
(apply concat)
|
||||||
(group-by :ns)))
|
(group-by :ns)
|
||||||
|
(into (sorted-map))))
|
||||||
|
|
||||||
(defn save!
|
(defn save!
|
||||||
[parsed-files]
|
[parsed-files]
|
||||||
|
|||||||
@@ -105,7 +105,6 @@
|
|||||||
(create-embed-file (content group)))))
|
(create-embed-file (content group)))))
|
||||||
(spit (io/file dir "index.edn")
|
(spit (io/file dir "index.edn")
|
||||||
(->> parsed-files
|
(->> parsed-files
|
||||||
sort
|
|
||||||
(map (fn [[ns groups]]
|
(map (fn [[ns groups]]
|
||||||
(for [{:keys [name]} groups]
|
(for [{:keys [name]} groups]
|
||||||
{:ns ns
|
{:ns ns
|
||||||
|
|||||||
Reference in New Issue
Block a user