code: func SortedResourceNames(list corev1.ResourceList) []corev1.ResourceName {
  	resources := make([]corev1.ResourceName, 0, len(list))
  	for res := range list {
  		resources = append(resources, res)
  	}
  	sort.Sort(SortableResourceNames(resources))
  	return resources
  }
docs: // SortedResourceNames returns the sorted resource names of a resource list.