Reference
This script sort clusters in .clstr file by length, size
Generic
Clstr_sort_by.pl input.clstr no > input_sort.clstr
Where, “no” means by size of the cluster