Formulas/Resources/Variables/FactVariable.php
public function AddFilter( $filter )
	{
		$this->filters[] = $filter;

		if ( count( $this->filters ) <= 1 ) return;

		usort( $this->filters, function( /** @var Filter $a */ $a, /** @var Filter $b */ $b )
		{
			return $a->sortPriority > $b->sortPriority
				? 1
				: ( $a->sortPriority < $b->sortPriority ? -1 : 0 );
		} );
	}
public function AddFilter( $filter )
	{
		$this->filters[] = $filter;

		if ( count( $this->filters ) <= 1 ) return;

		usort( $this->filters, function( /** @var Filter $a */ $a, /** @var Filter $b */ $b )
		{
			return $a->sortPriority > $b->sortPriority
				? 1
				: ( $a->sortPriority < $b->sortPriority ? -1 : 0 );
		} );
	}
public function AddFilter ( $ filter ) { $ this -> filters [ ] = $ filter ; if ( count ( $ this -> filters ) <= 1 ) return ; usort ( $ this -> filters , function ( /** @var Filter $a */ $ a , /** @var Filter $b */ $ b ) { return $ a -> sortPriority > $ b -> sortPriority ? 1 : ( $ a -> sortPriority < $ b -> sortPriority ? - 1 : 0 ) ; } ) ; }
Add the filters in a defined order starting with the concept filter to aid performance
@param Filter $filter
Add the filters in a defined order starting with the concept filter to aid performance