sort the headers