Improved sorting of methods in panel.