Commit cb44095a authored by SpinShare's avatar SpinShare

corrected website searchAll sorting

parent 03d82424
......@@ -26,7 +26,7 @@ class SearchController extends AbstractController
$resultsSongs = [];
if($request->query->get('showAll') == "1") {
$resultsSongs = $em->getRepository(Song::class)->findAll();
$resultsSongs = $em->getRepository(Song::class)->findBy(array(), array('id' => 'DESC'));
$data['results']['users'] = $resultsUsers;
$data['results']['songs'] = $resultsSongs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment