Debian Codegraph @

debian/python-natsort-doc.doc-base

raw
1 Document: python-natsort-reference-manual
2 Title: Natural sorting for Python Reference Manual
3 Author: Seth M. Morton
4 Abstract: Natural sorting for Python
5 natsort lets you apply natural sorting to your sequences easily, for example:
6 >>> from natsort import natsorted
7 >>> a = ['a2', 'a9', 'a1', 'a4', 'a10']
8 >>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']]
9 >>> natsorted(a)
10 ['a1', 'a2', 'a4', 'a9', 'a10'
11 >>> natsorted(data)
12 [['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']]
13 natsort identifies the numbers and sorts them separately from strings.
14 Section: Programming/Python
15
16 Format: HTML
17 Index: /usr/share/doc/python-natsort-doc/html/index.html
18 Files: /usr/share/doc/python-natsort-doc/html/*