src/Server/Asyn/Mysql/Miner.php
public function getOrderByString($includeText = true)
    {
        $statement = "";

        foreach ($this->orderBy as $orderBy) {
            $statement .= $orderBy['column'] . " " . $orderBy['order'] . ", ";
        }

        $statement = substr($statement, 0, -2);

        if ($includeText && $statement) {
            $statement = "ORDER BY " . $statement;
        }

        return $statement;
    }
public function getOrderByString($includeText = true)
    {
        $statement = "";

        foreach ($this->orderBy as $orderBy) {
            $statement .= $orderBy['column'] . " " . $orderBy['order'] . ", ";
        }

        $statement = substr($statement, 0, -2);

        if ($includeText && $statement) {
            $statement = "ORDER BY " . $statement;
        }

        return $statement;
    }
public function getOrderByString ( $ includeText = true ) { $ statement = "" ; foreach ( $ this -> orderBy as $ orderBy ) { $ statement .= $ orderBy [ 'column' ] . " " . $ orderBy [ 'order' ] . ", " ; } $ statement = substr ( $ statement , 0 , - 2 ) ; if ( $ includeText && $ statement ) { $ statement = "ORDER BY " . $ statement ; } return $ statement ; }
Get the ORDER BY portion of the statement as a string.

@param  bool $includeText optional include 'ORDER BY' text, default true
@return string ORDER BY portion of the statement
Get the ORDER BY portion of the statement as a string .