When current paging number is not 1, re-selecting the paging size or sorting parameters should reset the paging number back to 1 for any new data list loading. This effect can be achieved by resetting the current-page directive to 0 using the scope variable setCurrentPage. Since resetting the paging number will call the onServerSideItemsRequested function again, any process already related to the server call needs to be bypassed.