updated sorting of dt-pag