data-sort: clarified comment
data-sort: more clear assert

This is basically the same because at this point
unsorted_chunk->offset == sorted_chunk->offset but it feels more natural
this way.
data-sort: note about iterator error handling