swap the order of alm_b_ array