import { SortedMap } from "https://deno.land/x/froebel@v0.18.0/ds.ts";
Behaves like a regular JavaScript Map
, but its iteration order is dependant
on the compare
function supplied in the constructor.
Note: The item's sort position is only computed automatically on insertion.
If you update one of the values that the compare
function depends on, you
must call the update(key)
method afterwards to ensure the map stays sorted.