Feature Request: ORDER BY NULLS (FIRST | LAST)
See original GitHub issueHello!
I would propose to implement a NULLS FIRST/LAST
option for ORDER BY
clause.
In query builder it could looks like this:
queryBuilder.orderBy('date', 'DESC', 'LAST');
With FindOptions
it could look like this:
orderBy: {
'entity.date': ['DESC', 'LAST']
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
How to ORDER BY with NULLS comes FIRST or LAST - Help
You can check for IS NULL in the ORDER BY clause. Nulls first: select name from people order by name asc. Nulls last:...
Read more >Sort data with ASC NULLS FIRST [#2945836] | Drupal.org
The best solution would be to have the NULL FIRSTS | LAST generic feature on the query builder, whatever is the SQL engine,...
Read more >NULL sorting in BigQuery - Stack Overflow
Your example can be expressed as. SELECT * FROM books ORDER BY books ASC NULLS FIRST. and. SELECT * FROM books ORDER BY...
Read more >Sorting nulls last - Looker Community
Hi. Is there a way to sort a column in a table in descending order with nulls last instead of first? The default...
Read more >Feature Request: Specify ordering of null values for column
I tried implementing this with a custom sort function, but noticed that null values are handled by BeanPropertyComparator before the sort ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Was this implemented for find options? Struggling to find an example.
@victorschinaider please, create another issue with more details