data-sort: skip sort stage for already sorted bases

This should significantly decrease time to defragment already sorted
blobs.