def __versionsort__(f1, f2): 
    """sort directory listing in version order
    """
    f1 = stripChars(f1.replace(f1.split('_')[0],''),[], _versionChars )[1:] 
    f2 = stripChars(f2.replace(f2.split('_')[0],''),[], _versionChars )[1:]
    parts1 = f1.split('_')
    parts1[1:] = map(int, parts1)
    parts2 = f2.split('_')
    parts2[1:] = map(int, parts2)
    return cmp(parts1, parts2)
sort directory listing in version order
    
recipes/Python/285215_Package__Module_Versioning_Bootstrap_Loader_/recipe-285215.py