Comparer.Ordinal

This function returns a comparer that uses Ordinal rules to compare the given values x and y.

Syntax

Comparer.Ordinal(x as any, y as any) as number

About

This function returns a comparer that uses Ordinal rules to compare the given values x and y.

Explanation

By applying Ordinal rules, we compared the equivalence of the words "encyclopædia" and "encyclopaedia". It is observed that these words are not equivalent when Comparer is used with the "en-US" culture settings and Ordinal comparison. The output of this comparison is false.