mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 10:03:45 +03:00
chore: do not prioritize tag elements over operations
This commit is contained in:
parent
825162e5d7
commit
67e459f0c7
|
@ -88,10 +88,8 @@ export class SearchBox extends React.PureComponent<SearchBoxProps, SearchBoxStat
|
|||
item: this.props.getItemById(res.id),
|
||||
score: res.score,
|
||||
}));
|
||||
results.sort(
|
||||
(a, b) =>
|
||||
a.item.depth > b.item.depth ? 1 : a.item.depth < b.item.depth ? -1 : b.score - a.score,
|
||||
);
|
||||
|
||||
results.sort((a, b) => b.score - a.score);
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user