list tasks in sorted order