1) The code i gave was not intended to go to the first wrong field, server validations does not support that. it was intended to show a warning at the top of the form.
2) there are 2 files that control the side menu:
webassist/plugins/side_menu/sidemenu.php
and
webassist/plugins/side_menu/nested_accordion/sidemenu.php
you will need to change the ORDER BY clause in both of them.