mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 18:13:44 +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),
|
item: this.props.getItemById(res.id),
|
||||||
score: res.score,
|
score: res.score,
|
||||||
}));
|
}));
|
||||||
results.sort(
|
|
||||||
(a, b) =>
|
results.sort((a, b) => b.score - a.score);
|
||||||
a.item.depth > b.item.depth ? 1 : a.item.depth < b.item.depth ? -1 : b.score - a.score,
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user