fix to properly sort students