def modelsolutionssort_key(key): short_kind, name, _path = key return (kinds[short_kind][0], naturalsort_key(name[:name.index(".")]))