return $this; | return $this; | ||||
}*/ | }*/ | ||||
// @TODO : créer un addOrderBy et un orderBy | |||||
public function orderBy(string $field, string $sort = 'ASC'): self | public function orderBy(string $field, string $sort = 'ASC'): self | ||||
{ | { | ||||
if (strpos($field, '.')!==false) { | if (strpos($field, '.')!==false) { |