fixed filter and sort issue during pagination