We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c578b07 commit 7f304edCopy full SHA for 7f304ed
scripts/docs/processors/collect-inputs-outputs.js
@@ -40,9 +40,22 @@ module.exports = function collectInputsOutputs() {
40
}
41
42
// update doc with pruned members list and add inputs and outputs
43
- doc.members = members;
44
- doc.inputs = inputs;
45
- doc.outputs = outputs;
+ doc.members = members.sort(alphabetize);
+ doc.inputs = inputs.sort(alphabetize);
+ doc.outputs = outputs.sort(alphabetize);
46
+ }
47
+
48
+ function alphabetize(a, b) {
49
+ if (!a.name) {
50
+ return 1;
51
+ } else if (!b.name) {
52
+ return -1;
53
+ } else if (a.name < b.name) {
54
55
+ } else if (a.name > b.name) {
56
57
58
+ return 0;
59
60
61
function parseMember(member) {
0 commit comments