sort blocks in key order for SeqKey
rename seq key to data key