Fixes #6214 Alphabetical menu sorting in the web UI

Thanks @domcleal for attaching this one to my ticket. This one's also fairly low hanging fruit.