You can use the `sort()` function to sort a list in Python. The `sort()` function rearranges the elements of the original list in a way that they follow an increasing or decreasing order.
Here is an example of sorting a list in ascending order:
```
numbers = [5, 1, 9, 3, 7]
numbers.sort()
print(numbers)
```
numbers = [5, 1, 9, 3, 7]
numbers.sort(reverse=True)
print(numbers)
```
numbers = [5, 1, 9, 3, 7]
sorted_numbers = sorted(numbers)
print(sorted_numbers)
```
names = [‘Alex’, ‘Charlie’, ‘Ben’]
names.sort()
print(names)