Package elisa :: Package extern :: Module natural_sort
[hide private]
[frames] | no frames]

Module natural_sort

source code

Functions [hide private]
 
try_int(s)
Convert to integer if possible.
source code
 
natsort_key(s)
Used internally to get a tuple by which s is sorted.
source code
 
natcmp(a, b)
Natural string comparison, case sensitive.
source code
 
natcasecmp(a, b)
Natural string comparison, ignores case.
source code
 
natsort(seq, cmp=<function natcmp at 0x8a4056c>)
In-place natural string sort.
source code
 
natsorted(seq, cmp=<function natcmp at 0x8a4056c>)
Returns a copy of seq, sorted by natural string sort.
source code
 
obj_natsorted(seq, cmp, key) source code