Seems to work...
I've solved the problem by adding a field in pcms2_contents called menusort then changed the line in pages.php to...
$sitepages = mysql_query("SELECT DISTINCT ContentGroup, Group_CONCAT(ContentID) as ID FROM pcms2_contents WHERE ParentID IN (".$parentid . ") Group By ContentGroup Order By menusort");
Seems to work ok.