function reorder_data(&$array, $sort_type) { $sort_controller = new QuickSort(SortType::make_sort_type($sort_type)); $sort_controller->sort($array); }
public function set_sort_type($sort_type) { $this->_sort_type = SortType::make_sort_type($sort_type); }