Package elisa :: Package core :: Package utils :: Module sorting
[hide private]
[frames] | no frames]

Module sorting

source code

Utility functions for sorting

Functions [hide private]
 
_try_int(s) source code
 
_natural_key(s) source code
 
natural_sort(l)
Case insensitive human compliant sort.
source code
Variables [hide private]
  __maintainer__ = 'Florian Boucault <florian@fluendo.com>'
  natural_re = re.compile(r'(\d+|\D+)')
Function Details [hide private]

natural_sort(l)

source code 
Case insensitive human compliant sort.
Parameters:
  • l (list of string) - list that needs to be sorted