/**
* Constructor.
* @param string $field Sort order field.
* @param string $direction Sort order direction.
* @param string $nestedPath Nested sort path.
* @param QueryInterface $nestedFilter The filter applied to the nested sort.
* @param string $scoreMode Method used to aggregate the sort if there is many match for the filter.
* @param string $name Sort order name.
*/
public function __construct($field, $direction, $nestedPath, QueryInterface $nestedFilter = null, $scoreMode = self::SCORE_MODE_MIN, $name = null)
{
parent::__construct($field, $direction, $name);
$this->nestedFilter = $nestedFilter;
$this->nestedPath = $nestedPath;
$this->scoreMode = $scoreMode;
}