UNPKG

@azure/cosmos

Version:
21 lines 899 B
import type { OrderByDocument } from "./nonStreamingOrderByResult.js"; /** * @hidden * Utility function to compare two sets of OrderBy items according to sort orders * @param orderByItemsA - First set of order by items * @param orderByItemsB - Second set of order by items * @param sortOrders - Array of sort orders ("Ascending" or "Descending") * @returns Comparison result: negative if A \< B, 0 if A == B, positive if A \> B */ export declare function compareOrderByItems(orderByItemsA: any[], orderByItemsB: any[], sortOrders: string[]): number; /** @hidden */ export declare class OrderByComparator { sortOrder: string[]; constructor(sortOrder: string[]); compareItems(a: OrderByDocument, b: OrderByDocument): number; private getOrderByItems; private compareOrderByItem; private getType; private compareValue; } //# sourceMappingURL=orderByComparator.d.ts.map