private function sortCollection()
{
if ($this->queryConfiguration->hasOrderColumn()) {
$order = $this->queryConfiguration->orderColumns();
$orderFunc = $this->defaultGlobalOrderFunction;
$this->collection = $this->collection->sort(function ($first, $second) use($order, $orderFunc) {
return $orderFunc($first, $second, $order);
});
}
}