Fix ordering of search result
This commit is contained in:
@@ -191,6 +191,9 @@ class SearchResultService implements SingletonInterface
|
||||
});
|
||||
}
|
||||
|
||||
return new SearchResult($data, $total);
|
||||
// Turn result data into simple array to ensure order in js
|
||||
$result = array_values($data);
|
||||
|
||||
return new SearchResult($result, $total);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user