Adds the ability to sort outcomes according to utility. Outcomes of equal utility are ordered arbitrarily. None stands for the null outcome
Ranks the given list of outcomes.
sort(outcomes: List[Optional[Outcome]], descending=True) → None¶
Ranks the given list of outcomes. None stands for the null outcome.
The outcomes are sorted IN PLACE.
There is no way to know if the ufun is not defined from the return value. Use
has_ufunto check for the availability of the ufun