public static List < RedisClusterNode > sortByLatency ( Iterable < RedisClusterNode > clusterNodes ) { List < RedisClusterNode > ordered = LettuceLists . newList ( clusterNodes ) ; ordered . sort ( LatencyComparator . INSTANCE ) ; return ordered ; }
Sort partitions by latency .