generated docs: sort search results
parent
478e53911d
commit
15471531d0
|
@ -633,6 +633,10 @@
|
||||||
if (matchedItems.length !== 0) {
|
if (matchedItems.length !== 0) {
|
||||||
resizeDomList(domListSearchResults, matchedItems.length, '<li><a href="#"></a></li>');
|
resizeDomList(domListSearchResults, matchedItems.length, '<li><a href="#"></a></li>');
|
||||||
|
|
||||||
|
matchedItems.sort(function(a, b) {
|
||||||
|
return operatorCompare(a.decl.name, b.decl.name);
|
||||||
|
});
|
||||||
|
|
||||||
for (var i = 0; i < matchedItems.length; i += 1) {
|
for (var i = 0; i < matchedItems.length; i += 1) {
|
||||||
var liDom = domListSearchResults.children[i];
|
var liDom = domListSearchResults.children[i];
|
||||||
var aDom = liDom.children[0];
|
var aDom = liDom.children[0];
|
||||||
|
|
Loading…
Reference in New Issue