I have a timestamp
field in my each document. the timestamp is in ISODate
format. Is there any way i can sort the data using it in Document Explorer or Query Explorer?
Each document has a default timestamp field named '_ts'. You can for instance get last documents with the following query:
SELECT * FROM c ORDER BY c._ts DESC
If you have a full precision (-1) index on your ISO date string field ORDER BY works as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With