code: func inRange(r headerutil.Range) scope {
  	var scope composedScope
  
  	if r.Max != nil {
  		scope = append(scope, limit(*r.Max))
  	}
  
  	if r.Sort != nil && r.Order != nil {
  		o := fmt.Sprintf("%s %s", *r.Sort, *r.Order)
  		scope = append(scope, order(o))
  	}
  
  	return scope
  }
docs: // inRange returns a scope that limits and orders the results.