Gets the results sorted by their priority.
Should not be confounded with the List.sort function !
List<Result> sorted() => this..sort((a, b) => -a.priority.compareTo(b.priority));