package header

import (
	
	
)

type KeyValues struct {
	Key    string
	Values []string
}

type sorter struct {
	order map[string]int
	kvs   []KeyValues
}

func ( *sorter) () int      { return len(.kvs) }
func ( *sorter) (,  int) { .kvs[], .kvs[] = .kvs[], .kvs[] }
func ( *sorter) (,  int) bool {
	if ,  := .order[textproto.CanonicalMIMEHeaderKey(.kvs[].Key)];  {
		 = 
	}
	if ,  := .order[textproto.CanonicalMIMEHeaderKey(.kvs[].Key)];  {
		 = 
	}
	return  < 
}

func ( []KeyValues,  []string) {
	 := make(map[string]int)
	for ,  := range  {
		[textproto.CanonicalMIMEHeaderKey()] = 
	}
	 := &sorter{
		order: ,
		kvs:   ,
	}
	sort.Sort()
}