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. Sorting Multiple Lists According to a Single List
- 3.10. Returning Results in Reverse Order
- 3.11. Sorting Bytes on Python 3
- 3.12. Sorting a Pandas DataFrame
- 4. natsort API
- 4.1.
natsort_keygen()
- 4.2.
natsorted()
- 4.3.
versorted()
- 4.4.
humansorted()
- 4.5.
realsorted()
- 4.6.
index_natsorted()
- 4.7.
index_versorted()
- 4.8.
index_humansorted()
- 4.9.
index_realsorted()
- 4.10.
order_by_index()
- 4.11.
ns
- 4.12. Help With Bytes On Python 3
- 4.13. Help With Creating Function Keys
- 4.14. Possible Issues with
humansorted()
orns.LOCALE
- 4.1.
- 5. Shell Script
- 6. Changelog
- 6.1. 08-19-2017 v. 5.1.0
- 6.2. 04-30-2017 v. 5.0.3
- 6.3. 01-02-2017 v. 5.0.2
- 6.4. 06-04-2016 v. 5.0.1
- 6.5. 05-08-2016 v. 5.0.0
- 6.6. 11-01-2015 v. 4.0.4
- 6.7. 06-25-2015 v. 4.0.3
- 6.8. 06-24-2015 v. 4.0.2
- 6.9. 06-04-2015 v. 4.0.1
- 6.10. 05-17-2015 v. 4.0.0
- 6.11. 04-06-2015 v. 3.5.6
- 6.12. 04-04-2015 v. 3.5.5
- 6.13. 04-02-2015 v. 3.5.4
- 6.14. 03-26-2015 v. 3.5.3
- 6.15. 01-13-2015 v. 3.5.2
- 6.16. 09-25-2014 v. 3.5.1
- 6.17. 09-02-2014 v. 3.5.0
- 6.18. 08-12-2014 v. 3.4.1
- 6.19. 07-19-2014 v. 3.4.0
- 6.20. 06-28-2014 v. 3.3.0
- 6.21. 06-20-2014 v. 3.2.1
- 6.22. 05-07-2014 v. 3.2.0
- 6.23. 05-05-2014 v. 3.1.2
- 6.24. 03-01-2014 v. 3.1.1
- 6.25. 01-20-2014 v. 3.1.0
- 6.26. 10-01-2013 v. 3.0.2
- 6.27. 8-15-2013 v. 3.0.1
- 6.28. 7-13-2013 v. 3.0.0
- 6.29. 6-25-2013 v. 2.2.0
- 6.30. 12-5-2012 v. 2.1.0
- 6.31. 11-30-2012 v. 2.0.2
- 6.32. 11-21-2012 v. 2.0.1
- 6.33. 11-16-2012, v. 2.0.0