Natural Sorting in Clojure(script)

Today I was looking for some simple natural sorting algorithm for Clojurescript, and I was surprised almost none… Actually I found this one: But to be honest this is far from an idiomatic implementation for Clojure, so I decided to write my own. Based on this Python implementation I came up with this:

If you don’t need a lot of scaling that should suffice. Happy hacking!