Sorting in Teach

1. Sorting has been implemented in teach view.
2. Pagination has been modified and it is in progress.