Added sort by lastmod when finding orphaned documents to avoid
missing new chunks (after splits) when they are placed before
the current cursor