fwiw, one reason i never bothered implementing strverscmp() for Android is that (a) basic testing showed that the gnu documentation didn't match their implementation and (b) no two existing implementations appeared to behave the same.
interestingly, i note that freebsd has added a strverscmp() whereas openbsd has a vsort.c in sort itself. and the two implementations appear completely unrelated. ah, and if i look further, i see that freebsd doesn't even use its own strverscmp() in its sort. (which, to be fair, is an accurate duplication of gnu's nonsense iirc, which was another finding that made me say "not until/unless there's an agreed-upon spec", given that sort(1) [and ls(1)] are the two places you see folks wanting version sorting functionality.) On Tue, Feb 18, 2025 at 4:45 AM Edgar Fuß <e...@math.uni-bonn.de> wrote: > > > Or at switching to FreeBSD's, which has many more options supported? > It is clearly missing sorting by hex numbers (or, more generally, base-n) > and roman numerals.