请生成一个由10个随机整数组成的列表，并将该列表排序。您需要在输出中给出排序后的列表。
Sure, here is a Python code to generate a list of 10 random integers and sort it:

```python
import random

# Generate a list of 10 random integers between 1 and 100
my_list = [random.randint(1, 100) for i in range(10)]

# Sort the list
my_list.sort()

# Print the sorted list
print(my_list)
```

Example output: `[5, 12, 17, 23, 34, 43, 56, 59, 77, 79]`