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/
Please see the GitHub main page for everything else, including
- Quick description
- Basic examples
- FAQ
- Requirements and optional dependencies
- Installation instructions
- Testing instructions
- Deprecation schedule
- 1. How Does Natsort Work?
- 2. Examples and Recipes
- 2.1. Basic Usage
- 2.2. Sort Version Numbers
- 2.3. Sort OS-Generated Paths
- 2.4. Locale-Aware Sorting (Human Sorting)
- 2.5. Controlling Case When Sorting
- 2.6. Customizing Float Definition
- 2.7. Using a Custom Sorting Key
- 2.8. Generating a Natsort Key
- 2.9. Natural Sorting with
cmp
(Python 2 only) - 2.10. Sorting Multiple Lists According to a Single List
- 2.11. Returning Results in Reverse Order
- 2.12. Sorting Bytes on Python 3
- 2.13. Sorting a Pandas DataFrame
- 3. natsort API
- 4. Possible Issues with
humansorted()
orns.LOCALE
- 5. Shell Script
- 6. Changelog
- 6.1. Unreleased
- 6.2. 6.2.0 - 2019-11-13
- 6.3. 6.1.0 - 2019-11-09
- 6.4. 6.0.0 - 2019-02-04
- 6.5. 5.5.0 - 2018-11-18
- 6.6. 5.4.1 - 2018-09-09
- 6.7. 5.4.0 - 2018-09-06
- 6.8. 5.3.3 - 2018-07-07
- 6.9. 5.3.2 - 2018-05-17
- 6.10. 5.3.1 - 2018-05-14
- 6.11. 5.3.0 - 2018-04-20
- 6.12. 5.2.0 - 2018-02-14
- 6.13. 5.1.1 - 2017-11-11
- 6.14. 5.1.0 - 2017-08-19
- 6.15. 5.0.3 - 2017-04-30
- 6.16. 5.0.2 - 2017-01-02
- 6.17. 5.0.1 - 2016-06-04
- 6.18. 5.0.0 - 2016-05-08
- 6.19. 4.0.4 - 2015-11-01
- 6.20. 4.0.3 - 2015-06-25
- 6.21. 4.0.2 - 2015-06-24
- 6.22. 4.0.1 - 2015-06-04
- 6.23. 4.0.0 - 2015-05-17
- 6.24. 3.5.6 - 2015-04-06
- 6.25. 3.5.5 - 2015-04-04
- 6.26. 3.5.4 - 2015-04-02
- 6.27. 3.5.3 - 2015-03-26
- 6.28. 3.5.2 - 2015-01-13
- 6.29. 3.5.1 - 2014-09-25
- 6.30. 3.5.0 - 2014-09-02
- 6.31. 3.4.1 - 2014-08-12
- 6.32. 3.4.0 - 2014-07-19
- 6.33. 3.3.0 - 2014-06-28
- 6.34. 3.2.1 - 2014-06-20
- 6.35. 3.2.0 - 2014-05-07
- 6.36. 3.1.2 - 2014-05-05
- 6.37. 3.1.1 - 2014-03-01
- 6.38. 3.1.0 - 2014-01-20
- 6.39. 3.0.2 - 2013-10-01
- 6.40. 3.0.1 - 2013-08-15
- 6.41. 3.0.0 - 2013-07-13
- 6.42. 2.2.0 - 2013-06-25
- 6.43. 2.1.0 - 2012-12-05
- 6.44. 2.0.2 - 2012-11-30
- 6.45. 2.0.1 - 2012-11-21
- 6.46. 2.0.0 - 2012-11-16