UNPKG

test-ic-wallet-middleware-icrc

Version:
14 lines (13 loc) 632 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.orderBySubAccountId = void 0; const common_1 = require("@ic-wallet-middleware/common"); const big_integer_1 = __importDefault(require("big-integer")); function orderBySubAccountId(a, b) { return (0, common_1.hexToNumber)(a.subAccountId.toString())?.compare((0, common_1.hexToNumber)(b.subAccountId.toString()) || (0, big_integer_1.default)()) || 0; } exports.orderBySubAccountId = orderBySubAccountId; ;