> For the complete documentation index, see [llms.txt](https://pyohamen.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pyohamen.gitbook.io/til/algorithm/implementation/sort.md).

# sort

```python
lst = sorted(lst, key=lambda x: x[0]) 각 배열 첫번째 기준으로 정렬
lst = sorted(lst, key=lambda x: x[1]) 각 배열 두번째 기준으로 정렬

list.sort(reverse=True)
```
