Don't allow sorting on menu/id columns

Fixes #2503