void sort(
[int compare(T a, T b)]
)

This operation is not supported by an unmodifiable list.

Source

/** This operation is not supported by an unmodifiable list. */
void sort([Comparator<E> compare]) {
  throw new UnsupportedError(
      "Cannot modify an unmodifiable list");
}