PEATDB/Ekin/Ekin_map.py
def sort_by_Num(self, p):
        """Sort text keys by contained numbers - should be put in utils class"""
        splitkeys={}
        import re
        r=re.compile('\D')
        for k in p:
            splitkeys[k]=int(r.split(k)[1])
        items = splitkeys.items()
        items = [(v, k) for (k, v) in items]
        items.sort()
        return items
Sort text keys by contained numbers - should be put in utils class
Sort text keys by contained numbers - should be put in utils class
Sort text keys by contained numbers - should be put in utils class
def sort_by_Num(self, p):
        splitkeys={}
        import re
        r=re.compile('\D')
        for k in p:
            splitkeys[k]=int(r.split(k)[1])
        items = splitkeys.items()
        items = [(v, k) for (k, v) in items]
        items.sort()
        return items
def sort_by_Num ( self , p ) : splitkeys = { } import re r = re . compile ( '\D' ) for k in p : splitkeys [ k ] = int ( r . split ( k ) [ 1 ] ) items = splitkeys . items ( ) items = [ ( v , k ) for ( k , v ) in items ] items . sort ( ) return items
Sort text keys by contained numbers - should be put in utils class
Sort text keys by contained numbers - should be put in utils class
"""Sort text keys by contained numbers - should be put in utils class"""
self
p