--- id: natsort version: "8.4.0" license: MIT license_treatment: permissive maintenance: active --- # natsort — Simple yet flexible natural sorting in Python. License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install natsort uv add natsort poetry add natsort ## Description natsort ======= .. image:: https://img.shields.io/pypi/v/natsort.svg :target: https://pypi.org/project/natsort/ .. image:: https://img.shields.io/pypi/pyversions/natsort.svg :target: https://pypi.org/project/natsort/ .. image:: https://img.shields.io/pypi/l/natsort.svg :target: https://github.com/SethMMorton/natsort/blob/main/LICENSE .. image:: https://github.com/SethMMorton/natsort/workflows/Tests/badge.svg :target: https://github.com/SethMMorton/natsort/actions .. image:: https://codecov.io/gh/SethMMorton/natsort/branch/main/graph/badge.svg :target: https://codecov.io/gh/SethMMorton/natsort .. image:: https://img.shields.io/pypi/dw/natsort.svg :target: https://pypi.org/project/natsort/ Simple yet flexible natural sorting in Python. - Source Code: https://github.com/SethMMorton/natsort - Downloads: https://pypi.org/project/natsort/ - Documentation: https://natsort.readthedocs.io/ - `Examples and Recipes`_ - `How Does Natsort Work?`_ - `API`_ - `Quick Description`_ - `Quick Examples`_ - `FAQ`_ - `Requirements`_ - `Optional Dependencies`_ - `Installation`_ - `How to Run Tests`_ - `How... ## AI interpretation — verify before relying natsort provides natural sorting for strings containing numbers, ordering them by numeric value rather than lexicographic order—so '10' sorts after '9' instead of after '1'. Verdict: natsort is a mature, zero-dependency utility for natural sorting that solves a common problem elegantly. With active maintenance, no known vulnerabilities, permissive licensing, and top-1000 popularity, it is a safe and practical choice for any project needing human-friendly string sorting. [View on SkillFed](https://skillfed.io/packages/natsort) · [View on PyPI](https://pypi.org/project/natsort/)