Fix the order of branches in match expressions.