getSortableDatum
import { getSortableDatum } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/datum.ts";Create a Sortable instance for Datum given a Sortable for the inner type.
@example
import { getSortableDatum, replete, initial } from "./datum.ts";
import * as N from "./number.ts";
import * as A from "./array.ts";
import { pipe } from "./fn.ts";
const sortable = getSortableDatum(N.SortableNumber);
const data = [replete(3), initial, replete(1)];
const sorted = pipe(
data,
A.sort(sortable)
);
// [initial, replete(1), replete(3)]