Sort centroids based on cluster size before returning.