sort headers
simply use buffer library