Click or drag to resize

TableNameAlphanumComparer Class

The Alphanum Algorithm sorts strings containing a mix of letters and numbers. Given strings of mixed characters and numbers, it sorts the numbers in value order, while sorting the non-numbers in ASCII order. The end result is a natural sorting order. Traditional sorting algorithms use ASCII comparisons to sort these items, which means the end-user sees an unfortunately ordered list that does not consider the numeric values within the strings. For example, in a sorted list of name, Traditional sorting will give you: A1,A10,A11,A2,A3,A4,A5,A6, Alphanum sorting will give you: A1,A2,A3,A4,A5,A6,A10,A11
Inheritance Hierarchy
SystemObject
  Micros.OpsTableNameAlphanumComparer

Namespace: Micros.Ops
Assembly: Ops (in Ops.dll) Version: 19.8
Syntax
C#
public class TableNameAlphanumComparer : IComparer<CheckSummaryData>

The TableNameAlphanumComparer type exposes the following members.

Constructors
 NameDescription
Public methodTableNameAlphanumComparerInitializes a new instance of the TableNameAlphanumComparer class
Top
Methods
 NameDescription
Public methodCompare 
Top
See Also