Sort variant actions (first remove, then add)