From 858d4c6c693580ef60247ddb24c7de8c2c66dc63 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Thu, 6 Jul 2017 23:57:55 -0700 Subject: make log ordering consistent --- JSONSchema/validate.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'JSONSchema/validate.js') diff --git a/JSONSchema/validate.js b/JSONSchema/validate.js index 4c63500d0..1c176e2a8 100755 --- a/JSONSchema/validate.js +++ b/JSONSchema/validate.js @@ -25,6 +25,17 @@ rl.on('line', function(line) { rl.on('close', function() { schema = JSON.parse(fs.readFileSync('JSONSchema/schema.json')); + //sort file names alphabetically so that log output ordering is consistent + fileNames.sort((a,b) => { + if(a