Updated to better sort students

Realized that the sort function for taking attendance didn’t consider
the rank category.