added ability to sort gradebook entries by type