Sort classes before displaying. Fixes #78.