Skip to content

Commit

Permalink
properly sort versions using version-clj
Browse files Browse the repository at this point in the history
  • Loading branch information
martinklepsch committed Sep 11, 2018
1 parent d5dad83 commit c899a6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cljdoc/renderers/html.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
[cljdoc.platforms :as platf]
[cljdoc.spec]
[cljdoc.server.routes :as routes]
[version-clj.core :as v]
[clojure.string :as string]
[clojure.tools.logging :as log]
[clojure.java.io :as io]))
Expand Down Expand Up @@ -62,7 +63,7 @@
[:ol.list.pl0.pv3
(for [v (->> (:versions cache-contents)
(filter #(= (:artifact-id %) (:artifact-id route-params)))
(sort-by :version)
(sort-by :version v/version-compare)
(reverse))]
[:li.dib.mr3.mb3
[big-btn-link
Expand Down

0 comments on commit c899a6e

Please sign in to comment.