grunt icon indicating copy to clipboard operation
grunt copied to clipboard

File ordering broken - "file_b.js" parsed before "file.js" when matching with "*"

Open HarryWiles opened this issue 9 years ago • 1 comments

I'm seeing this bug with grunt-concat and post-css...

What's the new logic for the ordering of the files?

When matching files with "*", I expect the ordering to be '_', '0-9', 'a-z'. So file _helpers.js would be first and 'zoo_keeper.js' to be appended last. And if I added 'zoo_keeper_hut.js' that to come after 'zoo_keeper.js'...

Should I re-name my files or is this a bug?

[email protected] [email protected] here's a console.log() of the files it's processing in order:

image

HarryWiles avatar Sep 12 '16 13:09 HarryWiles

This is a bug. A proper lexicographical sort should find . before _.

antifob avatar Jan 17 '18 21:01 antifob