So I was trying to sort a list of numbers but when I enter a list of numbers such as 48 35 32 5 5 16 5 16 28 29. It won't sort as intended.

My code:

```py
def calculate():
    nums = input("Enter a number list: ")
    numsList = nums.split()
    sortedNums = sorted(numsList)
    print(sortedNums)

calculate()

```

So if I enter a list like this 48 35 32 5 5 16 5 16 28 29. It will return

```py
['16', '16', '28', '29', '32', '35', '48', '5', '5', '5']

```

instead of

```py
['5', '5', '5', '16', '16', '28', '29', '32', '35', '48']

```

Does anyone know how to fix this?