Sort the classes associated with each tutor.

Fixes #127.