corrected sort method for menus
Merge branch 'hotfix/correct-sorting-method'