sorting tasks in dropdown (start of task abstraction)