Atlas is not packing as expected (SOLVED)

https://www.dropbox.com/s/4aglpmnw907ur6q/defold_atlas_build_bug.zip?dl=0

Hmm, I make few tests and I’m really confused:

Source: 40 images of different sizes and three atlases:

  1. “4x2.atlas”: 4096x2048 - default atlas builded by defold (Create new atlas and add /images/*.png)
  2. “4x1.atlas”: 4096x1024 - manually change file order inside atlas using text editor
  3. “2x2.atlas”: 2048x2048 - one of thousands randomly sorted versions of “4x2.atlas” by script