Hosna QasmeiH
Convex Community2y ago
4 replies
Hosna Qasmei

is it possible to query .order based on a variable?

I have this query I am returning it by order('desc') but im assuming is desc based on the _creationTime. Is it possible or how would I do it if I what to sort the date variable not the _creationTime variable?
I included the schema and the function
Screenshot_2024-04-21_at_5.55.49_PM.png
Screenshot_2024-04-21_at_5.55.41_PM.png
Was this page helpful?