public function orderBy($column, $order = 'ASC') { if ($this->sql['orderBy'] == '') { $this->sql['orderBy'] = "ORDER BY {$column} {$order} "; } else { $this->sql['orderBy'] .= ", {$column} {$order} "; } return $this; }