code: func GetProjectConsoles(c context.Context, projectID string) ([]*Console, error) {
  	// Query datastore for consoles related to the project.
  	q := datastore.NewQuery("Console")
  	parentKey := datastore.MakeKey(c, "Project", projectID)
  	q = q.Ancestor(parentKey)
  	con := []*Console{}
  	err := datastore.GetAll(c, q, &con)
  	sort.Slice(con, func(i, j int) bool { return con[i].Ordinal < con[j].Ordinal })
  	return con, errors.Annotate(err, "getting project %q consoles", projectID).Err()
  }
docs: // GetProjectConsoles returns all consoles for the given project ordered as in config.