# Ordering

`import { Ordering } from "destack:ops";`

Result of a comparison operation.

Used by the `Compare` interface.

```ds title="Ordering"
export enum Ordering {
    Less = -1,
    Equal = 0,
    Greater = 1,
}
```

[language/library/src/ops/comparison.ds:7:11](https://github.com/destack-sh/destack/blob/main/language/library/src/ops/comparison.ds#L7-L11)

## Variants

### `Less = -1`



### `Equal = 0`



### `Greater = 1`
