Returns an ImmutableList containing all of the elements from this FluentIterable in the order specified by comparator. To produce an ImmutableList sorted by its natural ordering, use toSortedList(Ordering.natural()). Stream equivalent: {@cod
(Comparator<? super E> comparator)
| 650 | |
| 651 | |
| 652 | public final ImmutableList<E> toSortedList(Comparator<? super E> comparator) { |
| 653 | return Ordering.from(comparator).immutableSortedCopy(iterable); |
| 654 | } |
| 655 | |
| 656 | /** |
| 657 | * Returns an {@code ImmutableSet} containing all of the elements from this fluent iterable with |
nothing calls this directly
no test coverage detected