Permalink
Browse files

Sort output of fs.readdir to ensure an ordered command list.

  • Loading branch information...
1 parent e8bce8a commit af6444feec1f4f2d4db3faf31a5ac50d16c1875d @mfncooper mfncooper committed with isaacs Mar 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 scripts/index-build.js
View
@@ -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

0 comments on commit af6444f

Please sign in to comment.