Added sort by lastmod when querying config.chunks

This way we will not miss new chunks after splits, when these
chunks are placed before the current cursor