add sort to teacher