Added sorting & pagination to task logs