sort.clustering function

Returns the clustering result sorted by a set of metrics.