title: ASP.NET MVC - Bundle Config order
body: <p>I'm trying to use a specific locale (es-CL) in my ASP.NET MVC 5 application. I've the following:</p>
  
  <ol>
  <li>Changed web.config uiculture and culture to "es-CL"</li>
  <li>Installed the <a href="https://github.com/jquery/globalize#readme">Globalize</a> and <a href="https://github.com/johnnyreilly/jquery-validation-globalize">jQuery.Validation.Globalize</a> packages</li>
  <li>Changed the default language in my views: <code>&lt;html lang="es-cl"&gt;</code></li>
  <li>Created a new Bundle and included in the appropriate views.</li>
  </ol>
  
  <p>In <em>BundleConfig.cs</em>:</p>
  
  <pre><code>bundles.Add(new ScriptBundle("~/bundles/jqueryval")
      .Include("~/Scripts/jquery.validate.js")
      .Include("~/Scripts/jquery.validate.unobtrusive.js"));
  
  bundles.Add(new ScriptBundle("~/bundles/globalization")
      .Include("~/Scripts/globalize/globalize.js")
      .Include("~/Scripts/globalize/cultures/globalize.culture.es-CL.js")
      .Include("~/Scripts/jquery.validate.globalize.js"));
  </code></pre>
  
  <p>In the appropriate views:</p>
  
  <pre><code>@section Scripts {
      @Scripts.Render("~/bundles/jqueryval")
      @Scripts.Render("~/bundles/globalization")
  }
  </code></pre>
  
  <p>However, the generated source code is the following:</p>
  
  <pre><code>&lt;script src="/Scripts/jquery.validate.js"&gt;&lt;/script&gt;
  &lt;script src="/Scripts/jquery.validate.unobtrusive.js"&gt;&lt;/script&gt;
  
  &lt;script src="/Scripts/jquery.validate.globalize.js"&gt;&lt;/script&gt;
  &lt;script src="/Scripts/globalize/globalize.js"&gt;&lt;/script&gt;
  &lt;script src="/Scripts/globalize/cultures/globalize.culture.es-CL.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Please note that the <em>jquery.validate.globalize.js</em> script is being loaded before <em>globalize.js</em>, which is not what I want.</p>
  
  <p>Why is this happening? Is it possible to rely in the include order in a single bundle, or am I forced to put this single script in a different bundle and specify it in my view?</p>