Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/types-codec/bundle.ts>sortAsc

Package publishing for deno.land/x/polkadot
Go to Latest
function sortAsc
import { sortAsc } from "https://deno.land/x/polkadot@0.2.14/types-codec/bundle.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