These are chat archives for Automattic/mongoose
I'm trying to sort the results of my infinite scroll. Basically Mongo pulls 10 docs and I sort those results, then when the user gets tot he bottom is does that again skipping the first 10.
The trouble is, this isn't in order. If I want the data sorted by date. It currentl brings back the top 10 results and sorts that by date AFTER finding based on 'natural order'.
How can I make Mongo find based on date?
*Please keep in mind index and sort() both sort after.