code: public function sort($by, $order = 'ASC')
      {
          $this->sort = is_array($by) ? $by : [$by => $order];
  
          return $this;
      }
docs: Setter for sort.
  
  @param mixed  $by
  @param string $order
  
  @return $this