Added sort option for teacherList command