If I understand the above correctly, then it's either sorting alphabetically (if sortBy == "name") or sorting by cluster size.. - sorting by insertion sort in effect.

I can only see one place addToTargetClusterList is called, I think it would be clearer and more efficient (although not really particularly concerned about efficiency here maybe), to add all to the array and then perform a jarray sort.