added a step to make sure seqs are sorted by length before clustering