docs: def get_version_rank(version):
      """
      Converts a version string to it's rank.
  
      Usage::
  
          >>> get_version_rank("4.2.8")
          4002008000000
          >>> get_version_rank("4.0")
          4000000000000
          >>> get_version_rank("4.2.8").__class__
          <type 'int'>
  
      :param version: Current version to calculate rank.
      :type version: unicode
      :return: Rank.
      :rtype: int
      """
  
      tokens = list(foundations.common.unpack_default(filter(any, re.split("\.|-|,", version)), length=4, default=0))
      rank = sum((int(1000 ** i) * int(tokens[-i]) for i in range(len(tokens), 0, -1)))
      LOGGER.debug("> Rank: '{0}'.".format(rank))
      return rank