NaturalSort
NaturalSort copied to clipboard
Offer strcmp-like return values (less-than, equal-to, greater-than 0)
- some of the
detailfunctions already do this *_compareneeds only minor tweaks to forward these from thedetailfuncs - Expose
_compare(private b/c of underscore?) ascompare3
Ideally we'd think about renaming the old compare functions to be less or less_than, as this is more in line with what they do.
Then we could just use compare for the new functionality and ditch the somewhat-awkward compare3.
But that runs the major risk of surprising people already using compare (who would then also get a "true-ish" value for greater-than and not just less-than)
But if you think of any better naming scheme, go with it by all means ... no strong opinion. (We might also consider strcmp instead of compare3 for this new stuff)
Hi @dosena ,
Will it be possible for you to resolve the merge conflicts?