Write a program to sort a list.
Implement def sort_list(nums): to sort the integers in ascending order and return the sorted list. You may modify the input list in place, but do not use Python's built-in sorting functions.
Input: A list of integers. Output: The same list ordered from smallest to largest.
def sort_list(nums):