SortOrder enum
Sort direction of an index key, for ColumnIndexOptions.order.
Signature:
export declare enum SortOrder
Enumeration Members
|
Member |
Value |
Description |
|---|---|---|
|
ASC |
|
Ascending, which is Postgres's default. |
|
DESC |
|
Descending. |
Remarks
Rarely worth setting on its own, since a btree can be read backwards — it earns its keep when several keys sort in mixed directions, which a single-direction index cannot serve.