albertmatyi

SO answer http://stackoverflow.com/questions/10109176/orderi

Feb 8th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. The load order is depth first, but unfortunately the alphabetical sorting works on the file level only. So for example if you have the following structure:
  2.  
  3. * `client`
  4. * `cl.js`
  5. * `common`
  6. * `co.js`
  7. * `lib`
  8. * `li.js`
  9. * `server`
  10. * `serv_nest`
  11. * `se_ne.js`
  12. * `se_a.js`
  13. * `se_b.js`
  14.  
  15. Then the load order on the server side would be:
  16.  
  17.  
  18. 1. `li.js`
  19. 1. `se_ne.js`
  20. 1. `se_a.js`
  21. 1. `se_b.js`
  22. 1. `co.js`
  23.  
  24. So **if alphabetical ordering worked on folder** level as well then the order would be:
  25.  
  26. 1. `li.js`
  27. 1. `co.js`
  28. 1. `se_ne.js`
  29. 1. `se_a.js`
  30. 1. `se_b.js`
  31.  
  32. ! Unfortunately this is not the case. !
  33.  
  34. Note: If anyone knows where this is documented please let me know (or if I am wrong)
Add Comment
Please, Sign In to add comment