From 15471531d04f404b9327b28bd4e592ba3cd9ac2f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 7 Oct 2019 18:17:06 -0400 Subject: [PATCH] generated docs: sort search results --- lib/std/special/docs/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/std/special/docs/main.js b/lib/std/special/docs/main.js index 67ab1de00..d40c7187b 100644 --- a/lib/std/special/docs/main.js +++ b/lib/std/special/docs/main.js @@ -633,6 +633,10 @@ if (matchedItems.length !== 0) { resizeDomList(domListSearchResults, matchedItems.length, '
  • '); + matchedItems.sort(function(a, b) { + return operatorCompare(a.decl.name, b.decl.name); + }); + for (var i = 0; i < matchedItems.length; i += 1) { var liDom = domListSearchResults.children[i]; var aDom = liDom.children[0];