给出指定算法的输入和输出，让GPT模型生成伪代码。


算法输入：一个整数列表
算法
输出：对输入列表进行排序后得到的新列表

伪代码示例：

```
function sortList(list):
    if length of list less than or equal to 1:
        return list
    else:
        pivot = first element of list
        smaller = empty list
        larger = empty list
        for each element in list starting from second element:
            if element less than or equal to pivot:
                add element to smaller list
            else:
                add element to larger list
        sortedSmaller = sortList(smaller)
        sortedLarger = sortList(larger)
        return concatenate sortedSmaller, pivot, sortedLarger
```