MCPcopy Create free account
hub / github.com/ardanlabs/service / SortQuery

Function SortQuery

api/frontends/admin/src/components/DataTable/SortQuery.js:1–9  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1export default function SortQuery(s) {
2 let query = "";
3 for (let i = 0; i < s.length; i++) {
4 const e = s[i];
5
6 query += `&orderBy=${e.key},${e.order.toUpperCase()}`;
7 }
8 return query;
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected