Skip to content

Commit 193f2aa

Browse files
committed
es5
1 parent 522fd54 commit 193f2aa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

es5/jsdoc-parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ function getStats(jsdocExplainOutput) {
5454
}
5555

5656
function sort(array, sortBy) {
57-
var customSortOrders = {
57+
var customOrder = {
5858
kind: ['class', 'constructor', 'mixin', 'member', 'namespace', 'enum', 'constant', 'function', 'event', 'typedef', 'external'],
5959
scope: ['global', 'instance', 'static', 'inner']
6060
};
6161

6262
if (!sortBy) {
6363
return array;
6464
} else {
65-
return sortArray(array, sortBy, customSortOrders);
65+
return sortArray(array, sortBy, customOrder);
6666
}
6767
}
6868

es5/transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ function sort(object, sortFunction) {
309309
}
310310

311311
function sortIdentifier(doclet) {
312-
var fieldOrder = ['id', 'parentId', 'longname', 'name', 'scope', 'kind', 'isExported', 'classdesc', 'augments', 'inherits', 'inherited', 'implements', 'overrides', 'mixes', 'description', 'memberof', 'alias', 'params', 'fires', 'examples', 'returns', 'type', 'defaultvalue', 'readonly', 'thisvalue', 'isEnum', 'properties', 'optional', 'nullable', 'variable', 'author', 'deprecated', 'ignore', 'access', 'requires', 'version', 'since', 'licenses', 'license', 'typicalname', 'category', 'see', 'exceptions', 'codeName', 'todoList', 'customTags', 'chainable', 'meta', 'order'];
312+
var fieldOrder = ['id', 'parentId', 'longname', 'name', 'kind', 'scope', 'isExported', 'classdesc', 'augments', 'inherits', 'inherited', 'implements', 'overrides', 'mixes', 'description', 'memberof', 'alias', 'params', 'fires', 'examples', 'returns', 'type', 'defaultvalue', 'readonly', 'thisvalue', 'isEnum', 'properties', 'optional', 'nullable', 'variable', 'author', 'deprecated', 'ignore', 'access', 'requires', 'version', 'since', 'licenses', 'license', 'typicalname', 'category', 'see', 'exceptions', 'codeName', 'todoList', 'customTags', 'chainable', 'meta', 'order'];
313313
return sort(doclet, function (a, b) {
314314
if (fieldOrder.indexOf(a) === -1 && fieldOrder.indexOf(b) > -1) {
315315
return 1;

0 commit comments

Comments
 (0)