I am currently trying to this (doesn't actually orderBy anything)
let articlesSnapshot = await getDocs(articlesRef, orderBy('timestamp'));
In the documentation they only show this use case using queries rather than getDocs... Is there a way around this?
The trick is to create a query like this:
let articlesSnapshot = await getDocs(query(articlesRef, orderBy('timestamp')));
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