stephenplusplus/grunt-wiredep

Sorting Method

Opened this issue · 0 comments

I am getting different sorting results on Ubuntu vs OSX this is problem due to their file systems having different case sensitivities by default.

For example: Ubuntu Sorts like this

        <script src="/vendors/bower_components/foo/bar/Ax.js"></script>
        <script src="/vendors/bower_components/foo/bar/ac.js"></script>
        <script src="/vendors/bower_components/foo/bar/bd.js"></script>

OSX sorts like this:

        <script src="/vendors/bower_components/foo/bar/ac.js"></script>
        <script src="/vendors/bower_components/foo/bar/Ax.js"></script>
        <script src="/vendors/bower_components/foo/bar/bd.js"></script>

This results in grunt modifying the file during the build. You should do a case insensitive sort here so the file system won't matter.