Meikel  Brandmeyer avatar Meikel Brandmeyer committed 0b3cc83

Sort all entries

* cljtags.clj (-main): iterate all given namespace in go. This
is necessary because the entries for the tags file have to be
sorted in lexicographical order.

Comments (0)

Files changed (1)

src/de/kotka/cljtags.clj

      namespaces]
     (with-open [w (writer (File. output))]
       (binding [*out* w]
-        (doseq [a-ns (map symbol namespaces)]
-          (require a-ns)
-          (let [vs (map (comp meta second) (ns-interns a-ns))
+        (let [namespaces (map symbol namespaces)]
+          (doseq [n namespaces] (require n))
+          (let [vs (map (comp meta second)
+                        (sort-by first (mapcat ns-interns namespaces)))
                 vs (filter #(contains? % :file) vs)
                 vs (map #(get-definition-position prefix %) vs)]
             (doseq [v vs]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.