public function set_sorting($sort, $asc = true, $split = true) {
        $this->sort = (bool)$sort;
        $this->sortasc = (bool)$asc;
        $this->sortsplit = (bool)$split;
    }
public function set_sorting($sort, $asc = true, $split = true) {
        $this->sort = (bool)$sort;
        $this->sortasc = (bool)$asc;
        $this->sortsplit = (bool)$split;
    }
public function set_sorting ( $ sort , $ asc = true , $ split = true ) { $ this -> sort = ( bool ) $ sort ; $ this -> sortasc = ( bool ) $ asc ; $ this -> sortsplit = ( bool ) $ split ; }
Sets sorting on this category.

Please note this function doesn't actually do the sorting.
It can be called anytime.
Sorting occurs when the user calls get_children.
Code using the children array directly won't see the sorted results.

@param bool $sort If set to true children will be sorted, if false they won't be.
@param bool $asc If true sorting will be ascending, otherwise descending.
@param bool $split If true we sort pages and sub categories separately.
Sets sorting on this category .