code: protected function sort($query, array $sortBy)
      {
          /** @var SortParameterInterface $param */
          foreach ($sortBy as $param) {
              $this->sortBy($query, $param);
          }
      }
docs: Apply sort parameters to the query.
  
  @param Builder $query
  @param SortParameterInterface[] $sortBy
  @return void