natsort: Simple yet flexible natural sorting in Python.¶
Contents:
- 1. The
natsort
module - 2. How Does Natsort Work?
- 3. Examples and Recipes
- 3.1. Basic Usage
- 3.2. Sort Version Numbers
- 3.3. Sort OS-Generated Paths
- 3.4. Locale-Aware Sorting (Human Sorting)
- 3.5. Controlling Case When Sorting
- 3.6. Customizing Float Definition
- 3.7. Using a Custom Sorting Key
- 3.8. Generating a Natsort Key
- 3.9. Natural Sorting with
cmp
(Python 2 only) - 3.10. Sorting Multiple Lists According to a Single List
- 3.11. Returning Results in Reverse Order
- 3.12. Sorting Bytes on Python 3
- 3.13. Sorting a Pandas DataFrame
- 4. natsort API
- 5. Possible Issues with
humansorted()
orns.LOCALE
- 6. Shell Script
- 7. Changelog
- 7.1. Unreleased
- 7.2. 6.1.0 - 2019-11-09
- 7.3. 6.0.0 - 2019-02-04
- 7.4. 5.5.0 - 2018-11-18
- 7.5. 5.4.1 - 2018-09-09
- 7.6. 5.4.0 - 2018-09-06
- 7.7. 5.3.3 - 2018-07-07
- 7.8. 5.3.2 - 2018-05-17
- 7.9. 5.3.1 - 2018-05-14
- 7.10. 5.3.0 - 2018-04-20
- 7.11. 5.2.0 - 2018-02-14
- 7.12. 5.1.1 - 2017-11-11
- 7.13. 5.1.0 - 2017-08-19
- 7.14. 5.0.3 - 2017-04-30
- 7.15. 5.0.2 - 2017-01-02
- 7.16. 5.0.1 - 2016-06-04
- 7.17. 5.0.0 - 2016-05-08
- 7.18. 4.0.4 - 2015-11-01
- 7.19. 4.0.3 - 2015-06-25
- 7.20. 4.0.2 - 2015-06-24
- 7.21. 4.0.1 - 2015-06-04
- 7.22. 4.0.0 - 2015-05-17
- 7.23. 3.5.6 - 2015-04-06
- 7.24. 3.5.5 - 2015-04-04
- 7.25. 3.5.4 - 2015-04-02
- 7.26. 3.5.3 - 2015-03-26
- 7.27. 3.5.2 - 2015-01-13
- 7.28. 3.5.1 - 2014-09-25
- 7.29. 3.5.0 - 2014-09-02
- 7.30. 3.4.1 - 2014-08-12
- 7.31. 3.4.0 - 2014-07-19
- 7.32. 3.3.0 - 2014-06-28
- 7.33. 3.2.1 - 2014-06-20
- 7.34. 3.2.0 - 2014-05-07
- 7.35. 3.1.2 - 2014-05-05
- 7.36. 3.1.1 - 2014-03-01
- 7.37. 3.1.0 - 2014-01-20
- 7.38. 3.0.2 - 2013-10-01
- 7.39. 3.0.1 - 2013-08-15
- 7.40. 3.0.0 - 2013-07-13
- 7.41. 2.2.0 - 2013-06-25
- 7.42. 2.1.0 - 2012-12-05
- 7.43. 2.0.2 - 2012-11-30
- 7.44. 2.0.1 - 2012-11-21
- 7.45. 2.0.0 - 2012-11-16