Respect orderInCategory attribute of MenuItems.

Closes #1160.