A walkthrough of implementing a custom numeric string comparer in .NET 9 using Span APIs. The implementation handles alphanumeric ordering for strings containing numbers (e.g., movie sequels, OS versions), with configurable options for case sensitivity and decimal handling. The author reflects on the complexity of general-purpose numeric ordering and the edge cases involved, such as Roman numerals and decimal values, recommending use-case-specific implementations over a one-size-fits-all solution.
2 Impressions