PHP additional parameters to usort
Since you're using an anonymous function, you can use it as a closure like this:
$filter = <whatever>;
usort($this->data, function($arr1, $arr2) use ($filter) {
return ($arr1[$filter] > $arr2[$filter]) ? 1 : -1;
});