Sorting nad pagination with Ajax.