We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 511894c commit c8f5087Copy full SHA for c8f5087
README.md
@@ -278,6 +278,14 @@ Ransack.configure do |c|
278
end
279
```
280
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
289
See this feature: https://www.postgresql.org/docs/13/queries-order.html
290
291
#### Case Insensitive Sorting in PostgreSQL
0 commit comments