mirror of
https://github.com/friendica/friendica
synced 2024-11-19 10:23:41 +00:00
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);
|
||||
|
||||
$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);
|
||||
} else {
|
||||
logger("Start fulltext search for '".$search."'", LOGGER_DEBUG);
|
||||
|
|
Loading…
Reference in a new issue