def version_cmp(pkg1, pkg2, ignore_epoch=False):
 return __salt__['lowpkg.version_cmp'](pkg1, pkg2, ignore_epoch=ignore_epoch)

def version_cmp ( pkg1 , pkg2 , ignore_epoch = False ) : return __salt__ [ 'lowpkg.version_cmp' ] ( pkg1 , pkg2 , ignore_epoch = ignore_epoch )
sort versions from newest to oldest .