# ColumnIndexOptions.nullsFirst property · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.columnindexoptions.nullsfirst/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

`true` sorts nulls first, `false` sorts them last, and leaving it out follows Postgres.

**Signature:**

```typescript
nullsFirst: boolean;
```

## Remarks

Postgres's own default depends on the direction: nulls last for `ASC`, first for `DESC`. Set it only to match an `ORDER BY` that asks for the other one.

