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. 11-18-2018 v. 5.5.0
- 7.2. 09-09-2018 v. 5.4.1
- 7.3. 09-06-2018 v. 5.4.0
- 7.4. 07-07-2018 v. 5.3.3
- 7.5. 05-17-2018 v. 5.3.2
- 7.6. 05-14-2018 v. 5.3.1
- 7.7. 04-20-2018 v. 5.3.0
- 7.8. 02-14-2018 v. 5.2.0
- 7.9. 11-11-2017 v. 5.1.1
- 7.10. 08-19-2017 v. 5.1.0
- 7.11. 04-30-2017 v. 5.0.3
- 7.12. 01-02-2017 v. 5.0.2
- 7.13. 06-04-2016 v. 5.0.1
- 7.14. 05-08-2016 v. 5.0.0
- 7.15. 11-01-2015 v. 4.0.4
- 7.16. 06-25-2015 v. 4.0.3
- 7.17. 06-24-2015 v. 4.0.2
- 7.18. 06-04-2015 v. 4.0.1
- 7.19. 05-17-2015 v. 4.0.0
- 7.20. 04-06-2015 v. 3.5.6
- 7.21. 04-04-2015 v. 3.5.5
- 7.22. 04-02-2015 v. 3.5.4
- 7.23. 03-26-2015 v. 3.5.3
- 7.24. 01-13-2015 v. 3.5.2
- 7.25. 09-25-2014 v. 3.5.1
- 7.26. 09-02-2014 v. 3.5.0
- 7.27. 08-12-2014 v. 3.4.1
- 7.28. 07-19-2014 v. 3.4.0
- 7.29. 06-28-2014 v. 3.3.0
- 7.30. 06-20-2014 v. 3.2.1
- 7.31. 05-07-2014 v. 3.2.0
- 7.32. 05-05-2014 v. 3.1.2
- 7.33. 03-01-2014 v. 3.1.1
- 7.34. 01-20-2014 v. 3.1.0
- 7.35. 10-01-2013 v. 3.0.2
- 7.36. 8-15-2013 v. 3.0.1
- 7.37. 7-13-2013 v. 3.0.0
- 7.38. 6-25-2013 v. 2.2.0
- 7.39. 12-5-2012 v. 2.1.0
- 7.40. 11-30-2012 v. 2.0.2
- 7.41. 11-21-2012 v. 2.0.1
- 7.42. 11-16-2012, v. 2.0.0