Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
};