title: Symfony2: how to choose Javascript files load order?
body: <p>I am using jQuery in my Symfony2 application and I have a "ReferenceError: jQuery is not defined" error. I think changing Javascript file load order could fix this.</p>
  
  <p>How could I force to load jQuery Javascript file first in order to avoid such errors? I would like to keep the "js/*" in order to load auto-magically the future new JS files I will put.</p>
  
  <p>Here is stylesheets part of my *.html.twig template:</p>
  
  <pre><code>    {% javascripts
              '@xxxBundle/Resources/public/js/*'
              'js/*'
          %}
              &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
      {% endjavascripts %}
  </code></pre>
  
  <p>And here is current output generated by Symfony2:</p>
  
  <pre><code>&lt;script type="text/javascript" src="/Symfony/web/app_dev.php/js/8d3a8ee_part_2_acidTabs_1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/Symfony/web/app_dev.php/js/8d3a8ee_part_2_jquery-1.6.min_2.js"&gt;&lt;/script&gt;
  </code></pre>