Hi @Energy_N_A, @steevej,
The issue is that is sorting by identical values does not produce a deterministic sort order:
Per Using skip() with sort() in the documentation:
If using
skip()withsort(), be sure to include at least one field in your sort that contains unique values, before passing results toskip().Sorting on fields that contain duplicate values may return an inconsistent sort order for those duplicate fields over multiple executions, especially when the collection is actively receiving writes.
The easiest way to guarantee sort consistency is to include the
_idfield in your sort query.
Regards,
Stennie