Add null sorting#21
Conversation
sorting by an invalid direction shouldn't fail and use ASC order
Adding nulls_first=True or nulls_last=True to autosort templatetags (or sort_queryset in case of jinja templates) will sort the null values respectively on first and last places.
|
@manderj Could you submit another patch to handle Another solution, would be to only handle By default, b-tree index of PostgreSQL uses nulls last but I think it's important to not explicitly set an ordering of null as you did. |
Okay 👍, I'll seen into that later today and will make a new pull request when I'm done 🙂 |
|
Any news? |
|
Hey, sorry I didn't make any update. |
|
Oh, don't worry. I hope you're fine, take time to recover. |
Hey 👋
I would like to contribute,
I had to make some changes for work and think it would be nice to have it merged.
the changes are quite simple and just consists of allowing sorting by null values (in first or last position) on the selected column.
I'll gladly answer any question