Write a function to sort a list of integers.
Implement sort_integers(nums) to return the integers in nondecreasing order. The function should sort the list in place and return the same list object.
The input may be empty and may contain duplicate, negative, and positive integers.
def sort_integers(nums):