func (pms *paramsMultiSorter) Swap(i, j int) {
	pms.params[i], pms.params[j] = pms.params[j], pms.params[i]
}
Swap implements the Sort interface for paramsMultiSorter.
package openapi
import "sort"
var locationsOrder = map[string]int{
	"path":   0,
	"query":  1,
	"header": 2,
	"cookie": 3,
}
type paramLessFunc func(p1, p2 *ParameterOrRef) bool
type paramsMultiSorter struct {
	params []*ParameterOrRef
	less   []paramLessFunc
}
func (pms *paramsMultiSorter) Sort(params []*ParameterOrRef) {
	pms.params = params
	sort.Sort(pms)
}
func (pms *paramsMultiSorter) Len() int { return len(pms.params) }