Add reversal to each_sorted (and group_by, by extension)