Added when-sorted (useful for making in-order assertions in midje and getting deterministic results)