attempting to sort courses