UNPKG

383 BTypeScriptView Raw
1/**
2 * @name u8aSorted
3 * @summary Sorts an array of Uint8Arrays
4 * @description
5 * For input `UInt8Array[]` return the sorted result
6 * @example
7 * <BR>
8 *
9 * ```javascript
10 * import { u8aSorted} from '@polkadot/util';
11 *
12 * u8aSorted([new Uint8Array([0x69]), new Uint8Array([0x68])]); // [0x68, 0x69]
13 * ```
14 */
15export declare function u8aSorted(u8as: Uint8Array[]): Uint8Array[];