Explaning $arrayQ in comment, change the sequence of the array.