*
* @param order
* the sort order (<code>null</code> not permitted).
*/
public void sortByValues(final SortOrder order) {
final Comparator comparator = new KeyedValueComparator(
KeyedValueComparatorType.BY_VALUE, order);
Collections.sort(this.data, comparator);
this.rebuildKey2Index();
}