public function searchByClosure(\Closure $filterClosure, \Closure $orderClosure = null)
	{
		$result = array();
		
		foreach ($this->array as $item) {
			if ($filterClosure($item)) {
				$result[] = $item;
			}
		}
		
		if ( ! \is_null($orderClosure)) {
			usort($result, $orderClosure);
		}
		
		return $result;
	}
public function searchByClosure(\Closure $filterClosure, \Closure $orderClosure = null)
	{
		$result = array();
		
		foreach ($this->array as $item) {
			if ($filterClosure($item)) {
				$result[] = $item;
			}
		}
		
		if ( ! \is_null($orderClosure)) {
			usort($result, $orderClosure);
		}
		
		return $result;
	}
public function searchByClosure ( \ Closure $ filterClosure , \ Closure $ orderClosure = null ) { $ result = array ( ) ; foreach ( $ this -> array as $ item ) { if ( $ filterClosure ( $ item ) ) { $ result [ ] = $ item ; } } if ( ! \ is_null ( $ orderClosure ) ) { usort ( $ result , $ orderClosure ) ; } return $ result ; }
Perform data select by search and order closures
@param \Closure $filterClosure
@param \Closure $orderClosure
@return array
Perform data select by search and order closures