public static List < RedisClusterNode > sortByClientCount ( Iterable < RedisClusterNode > clusterNodes ) { LettuceAssert . notNull ( clusterNodes , "Cluster nodes must not be null" ) ; List < RedisClusterNode > ordered = LettuceLists . newList ( clusterNodes ) ; ordered . sort ( ClientCountComparator . INSTANCE ) ; return ordered ; }
Sort partitions by client count .