Make sure to keep the order of input paths in the callback array

Fixes #42
Merge pull request #49 from sindresorhus/input-path-order

Make sure to keep the order of input paths in the callback array