code: func SortInitContainerStatuses(p *v1.Pod, statuses []v1.ContainerStatus) {
  	containers := p.Spec.InitContainers
  	current := 0
  	for _, container := range containers {
  		for j := current; j < len(statuses); j++ {
  			if container.Name == statuses[j].Name {
  				statuses[current], statuses[j] = statuses[j], statuses[current]
  				current++
  				break
  			}
  		}
  	}
  }
docs: // SortInitContainerStatuses ensures that statuses are in the order that their
  // init container appears in the pod spec