sorted method

List<Result> sorted()

Gets the results sorted by their priority.

Should not be confounded with the List.sort function !

Implementation

List<Result> sorted() => this..sort((a, b) => -a.priority.compareTo(b.priority));