chore(doc-gen): speed up class member sorting
This commit is contained in:
parent
db5486a347
commit
ed6298c33f
|
@ -208,15 +208,6 @@ module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, mo
|
|||
|
||||
};
|
||||
|
||||
function insertSorted(collection, item, property) {
|
||||
var index = collection.length;
|
||||
while(index>0) {
|
||||
if(collection[index-1][property] < item[property]) break;
|
||||
index -= 1;
|
||||
}
|
||||
collection.splice(index, 0, item);
|
||||
}
|
||||
|
||||
function convertToRegexCollection(items) {
|
||||
if (!items) return [];
|
||||
|
||||
|
|
Loading…
Reference in New Issue