Sort files by length ASC

It is useful to fix a race condition when a two or more filenames share the same postfix. `Foobar.js` and `mobile-Foobar.js` sometime `Foobar.<hash>.js` would replace `mobile-Foobar.js`.