C# | StringComparer.Compare Method
In C#, the Compare method is used to compare two objects or strings and returns an indication of their relative sort order.Example: C# program to illustrate how to use StringComparer() to perform ordinal comparison.C#// C# program to illustrate the // CompareOrdinal(String, Int32, // String, Int32,