Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #70 from ipfs/pull
Browse files Browse the repository at this point in the history
fix(files): don't expect a specific sorting of files
  • Loading branch information
daviddias authored Sep 9, 2016
2 parents c25521e + ef98a93 commit 3e016f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e016f1

Please sign in to comment.