Reordering array.