Refactored Task_controller#index

But did not figure out how to KEEP active/incomplete filter when sorting
when no filter exists previously.