SethMMorton/natsort
Simple yet flexible natural sorting in Python. observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 96
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5235
- days_rel: n/a
- days_push: 28
- n_releases_24m: 0
Adoption not part of the score
1012 stars · 63 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
natsort is a Python library providing natural (human-friendly) sorting of strings containing numbers, as a drop-in replacement for the built-in sorted() function. It is flexible, with options for locale-aware sorting, paths, and other number formats.
Use cases
- sort filenames with numbers naturally
- sort version-like strings in human order
- replace python sorted() for alphanumeric lists
- sort lists like 'file1, file2, file10' correctly
- natural sorting of mixed number and text strings
- sort paths naturally in python
When to choose
- you need strings with embedded numbers sorted by numeric value instead of lexicographically
- you want a drop-in, well-tested replacement for sorted()
- you need locale-aware or path-aware natural sorting options
When to avoid
- you only sort plain numeric or plain alphabetic data with no mixed content
- you need sorting in a non-Python language
- you need in-place sorting of very large datasets with minimal overhead
Facets
library · maturity stable
parser developer-tools developer-tools files python cross-platform natural-sorting sorting string-processing human-friendly-sorting algorithms
3 sources
- readme: https://github.com/SethMMorton/natsort · fetched 2026-08-28 · 1fb822b92783
- homepage: https://pypi.org/project/natsort/ · fetched 2026-08-29 · 4b4e8fead74a
- registry_pypi: https://pypi.org/pypi/natsort/json · fetched 2026-08-29 · 8b2e7249480e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| SethMMorton/natsort | main | 75 |
For agents
markdown · JSON · MCP: product_card(name="SethMMorton/natsort")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem