Expand description
ORDER BY planning and sort key extraction.
Search-triggering sort detection (vector_distance, bm25_score, rrf_score) is handled in select.rs as part of apply_order_by. This module provides sort key extraction utilities.
Functionsยง
- convert_
sort_ keys - Convert sqlparser OrderByExpr list to SortKey list.
- sort_
ascending - Whether an
ORDER BYkey sorts ascending.USING <operator>is refused: no operator orders values here. - sort_
nulls_ first - Whether an
ORDER BYkey puts NULLs first. Unstated, NULLs sort last ascending and first descending, as in PostgreSQL.