public function order($order) { $this->orm->resetOrder(); foreach ($order as $o) { $this->orm = $this->orm->{'order_by_' . $o[1]}($o[0]); } $this->order = $order; return $this; }
public function order($order) { $this->orm->resetOrder(); foreach ($order as $o) { $this->orm = $this->orm->{'order_by_' . $o[1]}($o[0]); } $this->order = $order; return $this; }