Order search results by id
This commit is contained in:
parent
70af2cecf2
commit
81ac7c33da
1 changed files with 2 additions and 1 deletions
|
@ -211,7 +211,8 @@ function search_content(App $a) {
|
||||||
}
|
}
|
||||||
dba::close($terms);
|
dba::close($terms);
|
||||||
|
|
||||||
$items = Item::selectForUser(local_user(), [], ['id' => array_reverse($itemids)]);
|
$params = ['order' => ['id' => true]];
|
||||||
|
$items = Item::selectForUser(local_user(), [], ['id' => $itemids], $params);
|
||||||
$r = dba::inArray($items);
|
$r = dba::inArray($items);
|
||||||
} else {
|
} else {
|
||||||
logger("Start fulltext search for '".$search."'", LOGGER_DEBUG);
|
logger("Start fulltext search for '".$search."'", LOGGER_DEBUG);
|
||||||
|
|
Loading…
Reference in a new issue