Used the container to call Finder sort method classes

This commit is contained in:
Chris Kankiewicz
2020-02-25 12:56:33 -07:00
parent 5f60fbaf56
commit 5f8b556675

View File

@@ -71,8 +71,7 @@ class FinderProvider
throw new RuntimeException("Invalid sort option '{$sortOrder}'");
}
$sortMethod = self::SORT_METHODS[$sortOrder];
call_user_func(new $sortMethod, $finder);
$this->container->call(self::SORT_METHODS[$sortOrder], [$finder]);
}
if ($this->config->get('app.reverse_sort', false)) {