UNPKG

lakutata

Version:

An IoC-based universal application framework.

34 lines (31 loc) 821 B
/* Build Date: Mon Jan 05 2026 23:52:23 GMT+0800 (China Standard Time) */ import { s as r } from "../../../vendor/Package.internal.522.mjs"; function e(o, ...t) { if (t.length < 2) { let e = { order: "asc" }; if (t.length) e = Object.assign(e, { by: t[0].by, order: t[0].order, computed: t[0].computed }); return r(o, e); } else { const s = { by: [], order: [], customOrders: {} }; t.forEach(r => { if (r.by) { const t = r.by; s.by.push(t); s.order.push(t); s.customOrders[t] = e(o, r).map(r => r[t]); } }); return r(o, s); } } export { e as SortArray };