Tweak the sorted_values idioms to use Comparable<T>