From af6444feec1f4f2d4db3faf31a5ac50d16c1875d Mon Sep 17 00:00:00 2001 From: Martin Cooper Date: Fri, 30 Mar 2012 14:53:48 -0700 Subject: Sort output of fs.readdir to ensure an ordered command list. --- scripts/index-build.js | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') 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 -- cgit v1.2.3