This adds a nulls_last option to fetch_datatable. When nulls_last is true and the sort direction is descending, results will be sorted with NULLs following non-NULL data. This option is only valid with PostgreSQL.
The example site uses nulls_last: true as a default now.
There's an existing issue with the example site that allows you to add Item records, but doesn't set category_id or unit_id so they don't display in the table without manual edits. This PR doesn't address that issue.
This adds a
nulls_last
option tofetch_datatable
. Whennulls_last
istrue
and the sort direction is descending, results will be sorted with NULLs following non-NULL data. This option is only valid with PostgreSQL.The example site uses
nulls_last: true
as a default now.There's an existing issue with the example site that allows you to add
Item
records, but doesn't setcategory_id
orunit_id
so they don't display in the table without manual edits. This PR doesn't address that issue.Re: #20