Sort menu_render() by menu_order

A backend fix for issue #346, will now sort menu by menu_order.