File: python-natsort-doc.doc-base

package info (click to toggle)
natsort 8.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 504 kB
  • sloc: python: 4,891; makefile: 17; sh: 4
file content (18 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Document: python-natsort-reference-manual
Title: Natural sorting for Python Reference Manual
Author: Seth M. Morton
Abstract: Natural sorting for Python
 natsort lets you apply natural sorting to your sequences easily, for example:
 >>> from natsort import natsorted
 >>> a = ['a2', 'a9', 'a1', 'a4', 'a10']
 >>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']]
 >>> natsorted(a)
 ['a1', 'a2', 'a4', 'a9', 'a10'
 >>> natsorted(data)
 [['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']]
 natsort identifies the numbers and sorts them separately from strings.
Section: Programming/Python

Format: HTML
Index: /usr/share/doc/python-natsort-doc/html/index.html
Files: /usr/share/doc/python-natsort-doc/html/*