fix the page sort in ADF mode