code: func (w *Wrapper) packagesInOrder() []*PackageInfo {
  	result := make([]*PackageInfo, 0, len(w.packages))
  	names := make([]string, 0, len(w.packages))
  	for name := range w.packages {
  		names = append(names, name)
  	}
  	sort.Strings(names)
  	for _, name := range names {
  		result = append(result, w.packages[name])
  	}
  	return result
  }
docs: // packagesInOrder returns the list of packages, sorted by name.