sortTasks() method added to TreeViewAdapter base class