给定一组数字，编写代码将它们排序并输出结果。以下是示例
[input]
5, 9, 1, 3, 4, 6

4. 输入：
10, 8, 22, 6, 14, 2, 9
Python 代码示例：

1. 输入：

```
nums = [5, 9, 1, 3, 4, 6]
sorted_nums = sorted(nums)
print(sorted_nums)
```

输出：

```
[1, 3, 4, 5, 6, 9]
```

2. 输入：

```
nums = [10, 8, 22, 6, 14, 2, 9]
sorted_nums = sorted(nums)
print(sorted_nums)
```

输出：

```
[2, 6, 8, 9, 10, 14, 22]
```