parameters: (pids, project_index, sort=False)
docstring: Returns a list of project objects that correspond to the PID list
      passed as parameter. If sort is specified, the returning list is sorted
      by title.
docstring_summary: Returns a list of project objects that correspond to the PID list
      passed as parameter. If sort is specified, the returning list is sorted
      by title.
docstring_tokens: Returns a list of project objects that correspond to the PID list passed as parameter . If sort is specified the returning list is sorted by title .
function: def pids_to_projects(pids, project_index, sort=False):
      """ Returns a list of project objects that correspond to the PID list
      passed as parameter. If sort is specified, the returning list is sorted
      by title.
      """
      projects = [project_index[pid] for pid in pids]
      if sort:
          return natural_sort(projects, "title")
      else:
          return projects
function_tokens: def pids_to_projects ( pids , project_index , sort = False ) : projects = [ project_index [ pid ] for pid in pids ] if sort : return natural_sort ( projects , "title" ) else : return projects