How do you sort WritableList? I tried using sort method but It gave me an unsupported operation exception
Sample code:
writableList.sort( (o1, o2) -> o1.getPath().compareTo( o2.getPath() ) );
Exception:
java.lang.UnsupportedOperationException
at org.eclipse.core.databinding.observable.list.ObservableList$2.set(ObservableList.java:250)
at java.util.List.sort(List.java:482)
Iterator's set method from ObservableList:
@Override
public void set(E o) {
throw new UnsupportedOperationException();
}