code: func printEventList(list *api.EventList, w io.Writer, options PrintOptions) error {
  	sort.Sort(SortableEvents(list.Items))
  	for i := range list.Items {
  		if err := printEvent(&list.Items[i], w, options); err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // Sorts and prints the EventList in a human-friendly format.