code: func (b *eventBatch) events() []wrappedEvent {
  	sort.Sort(byTimestamp(b.batch))
  	return b.batch
  }
docs: // events returns a slice of wrappedEvents sorted in order of their
  // timestamps and then by their insertion order (see `byTimestamp`).
  //
  // Warning: this method is not threadsafe and must not be used
  // concurrently.