sort tasks by id in sidebar