Corrected changes to filter by username while sorting the tasks