documentation

This commit is contained in:
mollerhoj 2021-05-19 12:40:38 +02:00
parent 511894c35f
commit c8f50877a1
1 changed files with 8 additions and 0 deletions

View File

@ -278,6 +278,14 @@ Ransack.configure do |c|
end
```
To treat nulls as having the lowest or highest value respectively. To force nulls to always be first or last, use
```rb
Ransack.configure do |c|
c.postgres_fields_sort_option = :nulls_always_first # or :nulls_always_last
end
```
See this feature: https://www.postgresql.org/docs/13/queries-order.html
#### Case Insensitive Sorting in PostgreSQL