the documentation states:
If the collection is a list, it is sorted by place and returned. Otherwise, the items are first placed in a new list, which is then sorted and returned - leaving the original collection unchanged.
which is reflected in the implementation of the sort () method
public static <T> List<T> sort(Collection<T> self, Comparator<T> comparator) {
List<T> list = asList(self);
Collections.sort(list, comparator);
return list;
}
asList , java.util.List. , , java.util.ArrayList.
[], java.util.List.