diff options
author | Martin Cooper <mfncooper@gmail.com> | 2012-03-31 01:53:48 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-04-07 01:28:54 +0400 |
commit | af6444feec1f4f2d4db3faf31a5ac50d16c1875d (patch) | |
tree | ad42df669191f57e2462d0f7de933faec51e0d11 | |
parent | e8bce8a900bddf82b70109bc76589e550792c9d5 (diff) |
Sort output of fs.readdir to ensure an ordered command list.
-rwxr-xr-x | scripts/index-build.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/index-build.js b/scripts/index-build.js index b3c19a03a..551bb1d56 100755 --- a/scripts/index-build.js +++ b/scripts/index-build.js @@ -12,6 +12,7 @@ fs.readdir(api, done("api")) function done (which) { return function (er, docs) { if (er) throw er + docs.sort() if (which === "api") apidocs = docs else clidocs = docs |