public default SortedList<E> sorted (Comparator<E> comparator)

Creates a SortedList wrapper of this list using the specified comparator.

Parameters:
comparator    the comparator to use or null for unordered List

Returns:  new SortedList

Since:  JavaFX 8.0