(expr: SQL)
| 112 | const dir = sortOrder === 'asc' ? asc : desc |
| 113 | const nullsLast = sql`NULLS LAST` |
| 114 | const orderByClause = (expr: SQL): SQL => sql`${dir(expr)} ${nullsLast}` |
| 115 | |
| 116 | const buildCursorCondition = (sortExpr: unknown, idCol: unknown): SQL | undefined => { |
| 117 | if (!cursor) return undefined |