void sort([Comparator<E> compare ])

This operation is not supported by an unmodifiable list.

Source

void sort([Comparator<E> compare]) {
  throw new UnsupportedError("Cannot modify an unmodifiable list");
}