🔀 Extension method for StringComparison that adds support for natural sorting (e.g. "abc1", "abc2", "abc10" instead of "abc1", "abc10", "abc2").
Full Changelog: https://github.com/tompazourek/NaturalSort.Extension/compare/4.2.0...4.3.0
net8.0
target, small build-related internal improvementsFull Changelog: https://github.com/tompazourek/NaturalSort.Extension/compare/4.1.0...4.2.0
Full Changelog: https://github.com/tompazourek/NaturalSort.Extension/compare/4.0.0...4.1.0
net40
target (use netstandard1.3
instead)StringComparison
enum or the more general IComparer<string>
(instead of StringComparer
). Note that using StringComparison
instead of IComparer<string>
/StringComparer
should have better performance as there's no need to allocate substrings.