Fix student query

- Sorting still not working