public function getSortationString( array $types, array $translations = array() )
	{
		if( empty( $this->_sortations ) )
		{
			reset( $types );

			if( ( $name = key( $types ) ) === false ) {
				throw new MW_Common_Exception( 'No sortation types available' );
			}

			return $this->sort( '+', $name )->toString( $types, $translations );
		}


		$sortation = array();

		foreach( $this->_sortations as $sortitem )
		{
			if( ( $string = $sortitem->toString( $types, $translations ) ) !== '' ) {
				$sortation[] = $string;
			}
		}

		return implode( ' ', $sortation );
	}
public function getSortationString( array $types, array $translations = array() )
	{
		if( empty( $this->_sortations ) )
		{
			reset( $types );

			if( ( $name = key( $types ) ) === false ) {
				throw new MW_Common_Exception( 'No sortation types available' );
			}

			return $this->sort( '+', $name )->toString( $types, $translations );
		}


		$sortation = array();

		foreach( $this->_sortations as $sortitem )
		{
			if( ( $string = $sortitem->toString( $types, $translations ) ) !== '' ) {
				$sortation[] = $string;
			}
		}

		return implode( ' ', $sortation );
	}
public function getSortationString ( array $ types , array $ translations = array ( ) ) { if ( empty ( $ this -> _sortations ) ) { reset ( $ types ) ; if ( ( $ name = key ( $ types ) ) === false ) { throw new MW_Common_Exception ( 'No sortation types available' ) ; } return $ this -> sort ( '+' , $ name ) -> toString ( $ types , $ translations ) ; } $ sortation = array ( ) ; foreach ( $ this -> _sortations as $ sortitem ) { if ( ( $ string = $ sortitem -> toString ( $ types , $ translations ) ) !== '' ) { $ sortation [ ] = $ string ; } } return implode ( ' ' , $ sortation ) ; }
Returns the string for sorting the result.

@param array $types Associative list of item names and their types
@param array $translations Associative list of item names that should be translated
@return string Order string for sorting the items
Returns the string for sorting the result .