Skip to content

Commit c8f5087

Browse files
committed
documentation
1 parent 511894c commit c8f5087

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@ Ransack.configure do |c|
278278
end
279279
```
280280

281+
To treat nulls as having the lowest or highest value respectively. To force nulls to always be first or last, use
282+
283+
```rb
284+
Ransack.configure do |c|
285+
c.postgres_fields_sort_option = :nulls_always_first # or :nulls_always_last
286+
end
287+
```
288+
281289
See this feature: https://www.postgresql.org/docs/13/queries-order.html
282290

283291
#### Case Insensitive Sorting in PostgreSQL

0 commit comments

Comments
 (0)