(version)
return ".".join(map("{0:04d}".format, version_keys))
Key for sorting version number strings: '3.11' > '3.2.1.1
Key for sorting version number strings: '3.11' > '3.2.1.1
Key for sorting version number strings : 3 . 11 > 3 . 2 . 1 . 1
def SortingKey(version):
  """Key for sorting version number strings: '3.11' > '3.2.1.1'"""
  version_keys = map(int, version.split("."))
  # Fill up to full version numbers to normalize comparison.
  while len(version_keys) < 4:  # pragma: no cover
    version_keys.append(0)
  # Fill digits.
  return ".".join(map("{0:04d}".format, version_keys))
def SortingKey ( version ) : version_keys = map ( int , version . split ( "." ) ) # Fill up to full version numbers to normalize comparison. while len ( version_keys ) < 4 : # pragma: no cover version_keys . append ( 0 ) # Fill digits. return "." . join ( map ( "{0:04d}" . format , version_keys ) )