From ef98a935e474bec55aad1a4c15607097c686357f Mon Sep 17 00:00:00 2001 From: Friedel Ziegelmayer Date: Fri, 9 Sep 2016 12:34:38 +0200 Subject: [PATCH] fix(files): don't expect a specific sorting of files --- src/files.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/files.js b/src/files.js index 6bdf73e2e..645162fc2 100644 --- a/src/files.js +++ b/src/files.js @@ -378,6 +378,11 @@ module.exports = (common) => { next() } }, () => { + files = files.sort((a, b) => { + if (a.path > b.path) return 1 + if (a.path < b.path) return -1 + return 0 + }) // Check paths var paths = files.map((file) => { return file.path