Array Sorting

Original array:

1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Shuffled:

9, 8, 2, 3, 5, 7, 6, 4, 1, 10

Resorting array:

1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Reverse array:

10, 9, 8, 7, 6, 5, 4, 3, 2, 1