import { type Ordering } from "https://deno.land/x/fun@v2.0.0/sortable.ts";
The ordering type is the expected output of any
Compare function. The canonical example is the output
of the Array.sort function. For any two values first
and second
, Ordering means the following:
- -1 : first < second
- 0 : first = second
- 1 : first > second