original_string: public function order($by, $dir = 'asc', $manual = null, $sort_flags = null)
      {
          $this->items = $this->pages->sortCollection($this, $by, $dir, $manual, $sort_flags);
  
          return $this;
      }
code: public function order($by, $dir = 'asc', $manual = null, $sort_flags = null)
      {
          $this->items = $this->pages->sortCollection($this, $by, $dir, $manual, $sort_flags);
  
          return $this;
      }
code_tokens: public function order ( $ by , $ dir = 'asc' , $ manual = null , $ sort_flags = null ) { $ this -> items = $ this -> pages -> sortCollection ( $ this , $ by , $ dir , $ manual , $ sort_flags ) ; return $ this ; }
docstring: Reorder collection.
  
  @param string $by
  @param string $dir
  @param array  $manual
  @param string $sort_flags
  
  @return $this
docstring_tokens: Reorder collection .