Sorts this list according to the order induced by the specified Comparator. A null comparator sorts by natural ordering.
(Comparator<? super E> c)
| 372 | * {@code Comparator}. A {@code null} comparator sorts by natural ordering. |
| 373 | */ |
| 374 | default void sort(Comparator<? super E> c) { |
| 375 | Object[] a = toArray(); |
| 376 | Arrays.sort(a, (Comparator) c); |
| 377 | ListIterator<E> it = listIterator(); |
no outgoing calls
no test coverage detected