2025-10-15 10:17:20 Displayed 37 times

Released kmx.io/sort v0.1

Today we released kmx.io/sort v0.1.

Sort is a UNIX command written in C89 that sorts standard input into standard output. There is one option : -u which removes duplicates.

I needed a sorting order that is the same on all platforms (BSD, Linux, MacOS, MinGW), so just using memcmp(3) and strlen(3) gave good results.

Testing performances, results are very good, almost as fast as OpenBSD's sort which I did not copy (since I'm not a monkey-wanker, see).

kmx.io/sort on kmxgit

kmx.io/sort on Github

kmx.io/sort on Codeberg