IESoftek interview question

Sort the three numbers sequentially in a row for the whole array.