code: func (b *BackendStats) SortedTopRequests() []Request {
  	out := make([]Request, 0, len(b.TopRequests))
  	for _, req := range b.TopRequests {
  		out = append(out, req)
  	}
  	sort.Slice(out, func(i, j int) bool {
  		if out[i].GetFreq() == out[j].GetFreq() {
  			return out[i].Count > out[j].Count
  		}
  		return out[i].GetFreq() > out[j].GetFreq()
  	})
  	return out
  }
docs: // SortedTopRequests returns top requests sorted either
  // by frequency if frequency is present, or by count otherwise