function isOrderBySubset(subset, superset): boolean;
function isOrderBySubset(subset, superset): boolean;
Defined in: packages/db/src/query/predicate-utils.ts:713
Check if one orderBy clause is a subset of another. Returns true if the subset ordering requirements are satisfied by the superset ordering.
The ordering requirements to check
OrderBy | undefined
The ordering that might satisfy the requirements
OrderBy | undefined
boolean
true if subset is satisfied by superset
// Subset is prefix of superset
isOrderBySubset([{expr: age, asc}], [{expr: age, asc}, {expr: name, desc}]) // true
// Subset is prefix of superset
isOrderBySubset([{expr: age, asc}], [{expr: age, asc}, {expr: name, desc}]) // true
