Skip to main content
Module

x/polkadot/types-codec/utils/sortValues.ts>sortAsc

Package publishing for deno.land/x/polkadot
Go to Latest
function sortAsc
import { sortAsc } from "https://deno.land/x/polkadot@0.2.12/types-codec/utils/sortValues.ts";

Sort keys/values of BTreeSet/BTreeMap in ascending order for encoding compatibility with Rust's BTreeSet/BTreeMap (https://doc.rust-lang.org/stable/std/collections/struct.BTreeSet.html) (https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html)

Type Parameters

optional
V extends SortArg = Codec

Returns

number