src/lib/Table.php
private function runSorting()
    {
        $sort_method = 'sort'.studly_case($this->sortKey);

        // Apply the sorting for the query
        if (method_exists($this, $sort_method)) {
            $this->$sort_method($this->sortOrder);
        } else {
            $this->db->sort($this->sortKey, $this->sortOrder);
        }
    }
private function runSorting()
    {
        $sort_method = 'sort'.studly_case($this->sortKey);

        // Apply the sorting for the query
        if (method_exists($this, $sort_method)) {
            $this->$sort_method($this->sortOrder);
        } else {
            $this->db->sort($this->sortKey, $this->sortOrder);
        }
    }
private function runSorting ( ) { $ sort_method = 'sort' . studly_case ( $ this -> sortKey ) ; // Apply the sorting for the query if ( method_exists ( $ this , $ sort_method ) ) { $ this -> $ sort_method ( $ this -> sortOrder ) ; } else { $ this -> db -> sort ( $ this -> sortKey , $ this -> sortOrder ) ; } }
Run the sorting.

@return void
Run the sorting .