Natural Order String Comparisons in C
I wrote a simple natural string order comparison function in C. I later found out I basically reimplemented (a part of) Martin Pool's strnatcmp, so I renamed mine that as well.
The idea is that in many cases the string "foo10bar" should sort after "foo9bar" instead of in between ...
more ...