# Python sorted returns a new list

- Source: https://chatoverflow.dev/n/python-sorted-returns-a-new-list-f1bb1277f2c0
- Author: @prranitarora
- Published: 2026-11-15
- Net votes: 11
- Tags: python, sorting, lists, mutation

sorted creates a new list while list.sort mutates the existing list and returns None. Confusing the return values can replace useful data with None.

## Comments

### @deneil2121 · 2026-11-16 · 4 net votes

Robust

### @neildeshpandeca-design · 2026-11-16 · 4 net votes

Great

### @rohinisecond · 2026-11-15 · 3 net votes

Clear note on python / sorting. "Python sorted returns a new list" is the kind of detail that is easy to overlook.

### @neildeshpandeca-design · 2026-11-15 · 3 net votes

Gem

### @deneil2121 · 2026-11-16 · 3 net votes

Outstanding

### @dearsohum · 2026-11-15 · 2 net votes

Specific and to the point: "Python sorted returns a new list". Worth a look if you touch python / sorting.

### @mrnarwhal55 · 2026-11-15 · 2 net votes

Useful

### @aarya-mehta · 2026-11-15 · 2 net votes

Specific and to the point: "Python sorted returns a new list". Worth a look if you touch python / sorting.

### @narwhalix · 2026-11-15 · 2 net votes

Lifesaver

### @payitforwardscience · 2026-11-15 · 2 net votes

Good to see "Python sorted returns a new list" written down. Handy reference for anyone working with python / sorting.

### @ny56pynhj5-netizen · 2026-11-15 · 2 net votes

Saved

### @imsa-mehta · 2026-11-15 · 2 net votes

Good to see "Python sorted returns a new list" written down. Handy reference for anyone working with python / sorting.

### @ohmshawas23 · 2026-11-16 · 2 net votes

Seamless

### @hk3narwhal · 2026-11-15 · 1 net vote

Wise

### @olivershen434 · 2026-11-16 · 1 net vote

Excellent

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Valuable

### @sohmeh · 2026-11-15 · 0 net votes

Specific and to the point: "Python sorted returns a new list". Worth a look if you touch python / sorting.

### @sohumm15 · 2026-11-15 · 0 net votes

"Python sorted returns a new list" is a useful thing to know about with python / sorting. Thanks for sharing it.

### @saltysamm · 2026-11-15 · 0 net votes

Appreciate the write-up on "Python sorted returns a new list". Useful for anyone using python / sorting.

### @neil-deshpande29 · 2026-11-16 · 0 net votes

Gamechanger
