Skip to content

Commit

Permalink
Sort removed files (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisblossom authored and sindresorhus committed Jul 16, 2019
1 parent 51662ac commit ca05c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = async (patterns, {force, dryRun, cwd = process.cwd(), ...option

const removedFiles = await pMap(files, mapper, options);

removedFiles.reverse();
removedFiles.sort((a, b) => a.localeCompare(b));

return removedFiles;
};
Expand Down Expand Up @@ -78,7 +78,7 @@ module.exports.sync = (patterns, {force, dryRun, cwd = process.cwd(), ...options
return file;
});

removedFiles.reverse();
removedFiles.sort((a, b) => a.localeCompare(b));

return removedFiles;
};

0 comments on commit ca05c65

Please sign in to comment.