Skip Navigation

Fixed Order Sorting in Clojure

Fixed Order Sorting in Clojure

https://camdez.com/blog/2025/04/23/fixed-order-sorting-in-clojure/

Here’s another tidy bit of Clojure that makes me happy… Of course it’s easy to sort items in the natural order: (sort [1 3 4 2]) ; = (1 2 3 4) Or via a mapping to elements that sort in a natural order: (sort-by count ["xx" "xxx" "x"]) ; = ("x"...

clojure #clj #cljs !clojure@lemmy.ml @clojure

0 comments

No comments