Fix wrong sorting of classes in pane and CLI.

Can you please fix the sorting of the classes? Its sorted wrong in the class list pane and in CLI too.