code: def sort_key_for_numeric_suffixes(path, sep='.', suffix_index=-2):
      chunks = path.split(sep)
      if chunks[suffix_index].isdigit():
          return sep.join(chunks[:suffix_index] + chunks[suffix_index+1:]), int(chunks[suffix_index])
      return path, 0