fix pagination when enable sort function on not ajax/pipe mode