Rearrange functions order.