basically I have a three-level menu in wordpress and I've got the following code in the front-end to call the third-level menu:

$children = get\_pages('child\_of='.$include\_page\_ids[$i]);

```
    if (count($children) > 1) {

        $sub = "<ul>";

        foreach ($children as $child){

        $sub .= "<li><a href='#$child->post_title'>";

        $sub .= $child->post_title;

        $sub .= "</a></li>";

        }

        $sub .="</ul>";

        echo $sub;

    }

```

This calls a list for the children of a certain page and also makes the the anchors (which I also need). The problem is that right now they are being displayed in an alphabetical order, but I need to be able to set the right order myself (ie to be the same as in the backend menu). Please hepl me with it, how can I achieve this? For example this is the page <http://www.eboxlab.net/transbeam/support/support/>, youcan see the third level-menu as the box right next to the banner (Acceptable Use Policy to Terms & Conditions). THe order of the blocks which it corresponds to is right, but the menu is alphabetically ordered.
Help really appreciated.
PS: if you need I can provide the template code