Fixes sort, page building and search functions on "my tickets" page.