function ToArray()
    {
        $result = array();
        $item = $this->TopMost();
        while ($item)
        {
            $result[] = $item;
            $item = $this->NextOf($item);
        }
        return $result;
    }
function ToArray()
    {
        $result = array();
        $item = $this->TopMost();
        while ($item)
        {
            $result[] = $item;
            $item = $this->NextOf($item);
        }
        return $result;
    }
function ToArray ( ) { $ result = array ( ) ; $ item = $ this -> TopMost ( ) ; while ( $ item ) { $ result [ ] = $ item ; $ item = $ this -> NextOf ( $ item ) ; } return $ result ; }
Gets the sorted item list
@return mixed[] Returns the items in their given order
Gets the sorted item list