Skip to content
Back

Implement sorting (by $createdAt) while using cursor pagination

  • 0
  • Databases
  • Web
  • Cloud
logic
9 Jun, 2025, 20:29

??

TL;DR
Developers want to implement sorting by `$createdAt` with cursor pagination. The solution is to use `Query.orderDesc('$createdAt')` or `Query.orderAsc('$createdAt')`.
Axistro
9 Jun, 2025, 20:34

Query.orderDesc('$createdAt') or Query.orderAsc('$createdAt') This should do the work

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