$ open source · GPL-3.0 — need a commercial license? imqueue.com →

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.