Improved menu sorting and reliability