Solved problem 7.

Using sort method for an array of integers.