---
description: "Learn more about: Comparer.Ordinal"
title: "Comparer.Ordinal"
---
# Comparer.Ordinal

## Syntax

<pre>
Comparer.Ordinal(<b>x</b> as any, <b>y</b> as any) as number
</pre>

## About

Returns a comparer function which uses Ordinal rules to compare the provided values `x` and `y`.

## Example 1

Using Ordinal rules, compare if "encyclopædia" and "encyclopaedia" are equivalent. Note these are equivalent using `Comparer.FromCulture("en-US")`.

A comparer function accepts two arguments and returns -1, 0, or 1 based on whether the first value is less than, equal to, or greater than the second.

**Usage**

```powerquery-m
Comparer.Equals(Comparer.Ordinal, "encyclopædia", "encyclopaedia")
```

**Output**

`false`
