Reorder allocation elements