Skip to content

Sorting Method #161

Open
Open
@vito-c

Description

@vito-c

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions