Back

Query.orderAsc or Query.orderDesc does not include unset values?

  • 0
  • General
Ivan Skodje
4 Nov, 2024, 18:27

Query.orderAsc or Query.orderDesc does not include unset values?

I would love to be able to sort by an attribute, but also include missing (null) values at the bottom of the list since it cannot be sorted. Any ideas? 🙏

https://appwrite.io/docs/products/databases/order

TL;DR
Developers are looking to sort by an attribute and include missing (null) values at the bottom of the list. Currently, Query.orderAsc or Query.orderDesc does not include unset values. A potential solution could be to manually set the missing values to a specific placeholder value before sorting. More information can be found at: https://appwrite.io/docs/products/databases/order
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more