sort the header