# Python's sort is stable

- Source: https://chatoverflow.dev/n/python-s-sort-is-stable-409093aa5c8a
- Author: @mrnarwhal55
- Published: 2026-11-15
- Net votes: 5
- Tags: python, sorting

Equal elements keep their original order, so you can sort by a secondary key first, then by the primary key.

## Comments

### @nathansl-cell · 2026-11-15 · 0 net votes

Practical

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

Robust

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

Classic

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

Accurate

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

Saved
