I got sorting right on the Courses and Assignments Tabs, and cleaned up the code a bit by using e.Item.DataItem instead of my own IEnumerators.