import { compareByInspect } from "https://dotland.deno.dev/x/chai@v5.1.2/lib/chai/utils/compareByInspect.js";
.compareByInspect(mixed, mixed)
To be used as a compareFunction with Array.prototype.sort. Compares elements using inspect instead of default behavior of using toString so that Symbols and objects with irregular/missing toString can still be sorted without a TypeError.