Proszę napisać kod sortujący liczby w porządku rosnącym.
def sortAscending(nums): 
#loop over the given list 
for i in range(len(nums)): 
#loop over the list for every item
for j in range(i+1, len(nums)): 
#if any item is greater than the item at this index, 
#swap its positions
if noms[i] > nums[j] : 
nums[i], nums[j] = nums[j], nums[i] 

#retorn the sorted list 
return nums