public function order($by, $dir = 'asc', $manual = null, $sort_flags = null)
    {
        $this->items = $this->pages->sortCollection($this, $by, $dir, $manual, $sort_flags);

        return $this;
    }
public function order($by, $dir = 'asc', $manual = null, $sort_flags = null)
    {
        $this->items = $this->pages->sortCollection($this, $by, $dir, $manual, $sort_flags);

        return $this;
    }
public function order ( $ by , $ dir = 'asc' , $ manual = null , $ sort_flags = null ) { $ this -> items = $ this -> pages -> sortCollection ( $ this , $ by , $ dir , $ manual , $ sort_flags ) ; return $ this ; }
Reorder collection.

@param string $by
@param string $dir
@param array  $manual
@param string $sort_flags

@return $this
Reorder collection .