'prevent github to re-order my directory tree wrapping with number

I have a structure on my local like this:

root/
dir 1
dir 2
dir 3
dir 4
dir 5
dir 6
dir 7
dir 8
dir 9
dir 10
dir 11
dir 12

but when i commit it and push to github i get this order:

root/
dir 1
dir 10
dir 11
dir 12
dir 2
dir 3
dir 4
dir 5
dir 6
dir 7
dir 8
dir 9

Exist any way to prevent github to reorder???



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source