public final List < CellName > sort ( List < CellName > clusteringKeys ) { List < CellName > result = new ArrayList <> ( clusteringKeys ) ; Collections . sort ( result , new Comparator < CellName > ( ) { @ Override public int compare ( CellName o1 , CellName o2 ) { return cellNameType . compare ( o1 , o2 ) ; } } ) ; return result ; }
Returns the specified list of clustering keys sorted according to the table cell name comparator .