On Mon, May 8, 2017 at 5:01 PM, <[email protected]> wrote: > - DBObject sortFields = new > BasicDBObject(NodeDocument.MODIFIED_IN_SECS, -1); > + DBObject sortFields = new > BasicDBObject(NodeDocument.MODIFIED_IN_SECS, 1);
May be we skip sorting altogether. In that case iteration would be on id which should be stable order. Chetan Mehrotra
