Adding Postgres NULLS LAST to an Ash prepare build sort
Hi! I spent a little bit trying to figure this out and wanted to share to make it more searchable.
Ash's sorts actually support NULLS FIRST and NULLS LAST as different options passed instead of the normal
:asc
, :desc
, etc:
The documentation references nils, rather than Postgres NULLS, so it didn't come up.
https://ash-hq.org/docs/module/ash/latest/ash-sort#type-sort_order-0
Thanks!0 Replies