code: func SortContainerMetrics(messages []*events.ContainerMetric) []*events.ContainerMetric {
  	sort.Sort(containerMetricSlice(messages))
  	return messages
  }
docs: // SortContainerMetrics sorts a slice of containerMetrics by InstanceIndex.
  //
  // The input slice is sorted; the return value is simply a pointer to the same slice.