sort table before generating HTML; add 30 classes' courses