[#30997] Fix reordering of menus and categories.

See <a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30997">issue 30997</a>