def version_sorted(elements):
 return sorted(elements, key=LooseVersion, reverse=True)

def version_sorted ( elements ) : return sorted ( elements , key = LooseVersion , reverse = True )
sort iterable based on loose description of "version" from newest to oldest .