SortOrder enum

Sort direction of an index key, for ColumnIndexOptions.order.

Signature:

export declare enum SortOrder 

Enumeration Members

Member

Value

Description

ASC

"ASC"

Ascending, which is Postgres's default.

DESC

"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.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.