public static List < RedisClusterNode > sortByUri ( Iterable < RedisClusterNode > clusterNodes ) { LettuceAssert . notNull ( clusterNodes , "Cluster nodes must not be null" ) ; List < RedisClusterNode > ordered = LettuceLists . newList ( clusterNodes ) ; ordered . sort ( ( o1 , o2 ) -> RedisURIComparator . INSTANCE . compare ( o1 . getUri ( ) , o2 . getUri ( ) ) ) ; return ordered ; }
Sort partitions by RedisURI .