title: Force ASP.Net MVC Bundle to render the javascript files in a certain order
body: <p>I am working on an ASP.Net MVC 4 application and using Bundling and minifiction to render styles and script files.</p>
  
  <p>I have a script file (<strong>File A</strong>) that call function in another file (<strong>File B</strong>) , when I am using<br>
  <code>@Scripts.Render()</code> method it render <code>link</code> tag for <strong>File A</strong> before <strong>File B</strong> so it fire an error and the script not work correctly.</p>
  
  <p>Is there any way to force <code>@Script.Render()</code> to render <code>link</code> tags in certain order without using separate bundle for each file????</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I am using <code>IncludeDirectory</code> method to include all script files in that folder</p>
  
  <pre><code>public class BundleConfig
  {
      public static void RegisterBundles(BundleCollection bundles)
      {
          bundles.Add(new ScriptBundle("~/bundles/js").IncludeDirectory(
                      "~/Scripts/js",
                      "*.js"));
      }
  }
  </code></pre>