src/Classes/AdldapSearch.php
private function processSortBy($objects)
    {
        if (count($objects) > 0) {
            foreach ($objects as $key => $row) {
                if (array_key_exists($this->sortByField, $row)) {
                    $sort[$key] = $row[$this->sortByField];
                }
            }

            array_multisort($sort, $this->sortByDirection, $objects);
        }

        return $objects;
    }
private function processSortBy($objects)
    {
        if (count($objects) > 0) {
            foreach ($objects as $key => $row) {
                if (array_key_exists($this->sortByField, $row)) {
                    $sort[$key] = $row[$this->sortByField];
                }
            }

            array_multisort($sort, $this->sortByDirection, $objects);
        }

        return $objects;
    }
private function processSortBy ( $ objects ) { if ( count ( $ objects ) > 0 ) { foreach ( $ objects as $ key => $ row ) { if ( array_key_exists ( $ this -> sortByField , $ row ) ) { $ sort [ $ key ] = $ row [ $ this -> sortByField ] ; } } array_multisort ( $ sort , $ this -> sortByDirection , $ objects ) ; } return $ objects ; }
Processes the array of specified object results
and sorts them by the field and direction search
property.

@param $objects
@param array
Processes the array of specified object results and sorts them by the field and direction search property .