Changed args in sort header function