Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

sort

import { sort } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/boolean.ts";

Compares two booleans, returning an Ordering. True is greater than False in this ordering, generally, but the specifics are always decided by the runtime.

@example
import { sort } from "./boolean.ts";

const result1 = sort(true, true); // 0
const result2 = sort(true, false); // 1
const result3 = sort(false, true); // -1
function sort(first: boolean, second: boolean): Ordering;
§
sort(first: boolean, second: boolean): Ordering
[src]

§Parameters

§
first: boolean
[src]
§
second: boolean
[src]