Given an array of integers, sort it in non-decreasing order.
nums = array of integers
Sorted array
Example 1:
Input:
nums = [5,2,3,1]
Output:
[1,2,3,5]
Explanation:
Sorted order.