Fix wrong sorting of classes in pane and CLI.