sortWith method
Sorts elements in the list in-place according to the specified comparator
Implementation
void sortWith(Comparator<T> comparator) {
// delegate to darts list implementation for sorting which is highly optimized
asList().sort(comparator);
}