public function setDefaultSort($sort, $use_on_reset = true)
	{
		if (is_string($sort)) {
			$sort = [$sort => 'ASC'];
		} else {
			$sort = (array) $sort;
		}

		$this->default_sort = $sort;
		$this->default_sort_use_on_reset = (bool) $use_on_reset;

		return $this;
	}
public function setDefaultSort($sort, $use_on_reset = true)
	{
		if (is_string($sort)) {
			$sort = [$sort => 'ASC'];
		} else {
			$sort = (array) $sort;
		}

		$this->default_sort = $sort;
		$this->default_sort_use_on_reset = (bool) $use_on_reset;

		return $this;
	}
public function setDefaultSort ( $ sort , $ use_on_reset = true ) { if ( is_string ( $ sort ) ) { $ sort = [ $ sort => 'ASC' ] ; } else { $ sort = ( array ) $ sort ; } $ this -> default_sort = $ sort ; $ this -> default_sort_use_on_reset = ( bool ) $ use_on_reset ; return $ this ; }
Set default sorting
@param array $sort
@param bool  $use_on_reset
@return static
Set default sorting