title: ASP.NET MVC 3 - Difficulty understanding Routes
body: <p>I've created a system in MVC 3 using the NerdDinner tutorial as a base to work off. I'm not sure I fully understand Routing.</p>
  
  <p>Everything was working fine until I added a sort to the Pagination helper that I have.</p>
  
  <p>Here is the global.asax.cs </p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
      routes.MapRoute(
          "UpcomingKeyDates", // Route name
          "KeyDates.mvc/{sortBy}/Page/{page}", // URL with parameters
          new { controller = "Home", action = "Index" } // Parameter defaults
      );
  
      routes.MapRoute(
         "Default", // Route name
         "{controller}.mvc/{action}/{id}", // URL with parameters
         new { controller = "Home", action = "Index", sortBy = "EventDate" } // Parameter defaults
      );
  
      routes.MapRoute(
          "Root", // Route name
          "", // URL with parameters
          new { controller = "Home", action = "Index", sortBy = "EventDate" } // Parameter defaults
      );
  
  }
  </code></pre>
  
  <p>I want to default the list to sort by Event Date ascending when you first navigate to the page (which works fine). The sort and pagination also works fine. However, when I'm using this link...</p>
  
  <pre><code>&lt;%: Html.ActionLink("Create New", "Create", "Home") %&gt;
  </code></pre>
  
  <p>The link just directs to the same page. Do I need to add a new route, or amend an existing route? Any help much appreciated.</p>
  
  <p>Thanks.</p>