protected function _getProductListSortByParam( array $params, &$sortdir )
	{
		$sortation = ( isset( $params['f-sort'] ) ? (string) $params['f-sort'] : 'relevance' );

		$sortdir = ( $sortation[0] === '-' ? '-' : '+' );
		$sort = ltrim( $sortation, '-' );

		return ( strlen( $sort ) > 0 ? $sort : 'relevance' );
	}
protected function _getProductListSortByParam( array $params, &$sortdir )
	{
		$sortation = ( isset( $params['f-sort'] ) ? (string) $params['f-sort'] : 'relevance' );

		$sortdir = ( $sortation[0] === '-' ? '-' : '+' );
		$sort = ltrim( $sortation, '-' );

		return ( strlen( $sort ) > 0 ? $sort : 'relevance' );
	}
protected function _getProductListSortByParam ( array $ params , & $ sortdir ) { $ sortation = ( isset ( $ params [ 'f-sort' ] ) ? ( string ) $ params [ 'f-sort' ] : 'relevance' ) ; $ sortdir = ( $ sortation [ 0 ] === '-' ? '-' : '+' ) ; $ sort = ltrim ( $ sortation , '-' ) ; return ( strlen ( $ sort ) > 0 ? $ sort : 'relevance' ) ; }
Returns the sanitized sortation from the parameters for the product list.

@param array $params Associative list of parameters that should be used for filtering
@param string &$sortdir Value-result parameter where the sort direction will be stored
@return string Sortation string (relevance, name, price)
Returns the sanitized sortation from the parameters for the product list .