code: func SortByKind(manifests []Manifest) []Manifest {
  	ordering := InstallOrder
  	ks := newKindSorter(manifests, ordering)
  	sort.Sort(ks)
  	return ks.manifests
  }
docs: // SortByKind sorts manifests in InstallOrder