Update to deal with class stats

This puts in place the work to do with caching and sorting the class
data, and a simple sort on daily classes.