sortedById method

ObservableList<P> sortedById()

Implementation

ObservableList<P> sortedById() {
  return ObservableList.of(
    this..sort((a, b) => a.id.compareTo(b.id)),
  );
}