header parser sorting fix