diff --git a/src/webui/search.php b/src/webui/search.php index 4242a74..919f703 100644 --- a/src/webui/search.php +++ b/src/webui/search.php @@ -118,7 +118,9 @@ switch (true) // Empty query case empty($q): - $query = $index->search('')->sort('RAND()'); + $query = $index->search('') + ->expression('random', 'rand()') + ->sort('random', 'asc'); break;