Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mollerhoj committed May 19, 2021
1 parent 511894c commit c8f5087
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8f5087

Please sign in to comment.