AlphanumComparator
A class in Root.Township, the global namespace.
Non-generic comparer for natural string sorting, so "item2" sorts before "item10". Non-strings compare as equal.
- Listed in Global namespace: A to B
- Inherits or implements
IComparer - Nested types
ChunkType
Constructors
| Member | What it is |
|---|---|
AlphanumComparator() | Creates an AlphanumComparator with default values. |
Methods
| Member | What it is |
|---|---|
int Compare(object x, object y) | Splits both strings into digit and non-digit runs and compares them in turn, numbers by value. |