Sorting working on teacher show page