title: PagedList error: The method 'OrderBy' must be called before the method 'Skip'
body: <p>Here's the full error message:
   The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must be called before the method 'Skip'</p>
  
  <p>In the "PurchaseOrderController" I have added this code to the index method:</p>
  
  <pre><code>// GET: PurchaseOrder
      public ActionResult Index(int? page)
      {
          return View(db.PurchaseOrders.ToPagedList(page ?? 1, 3));
      }
  </code></pre>
  
  <p>Also in the Index View for "PurchaseOrders" I have added this code:</p>
  
  <pre><code>    @using PagedList;
  @using PagedList.Mvc;
  @model IPagedList&lt;PurchaseOrders.Models.PurchaseOrder&gt;
  
  @{
      ViewBag.Title = "Index";
  }
  
  &lt;h2&gt;Index&lt;/h2&gt;
  
  &lt;p&gt;
      @Html.ActionLink("Create New", "Create")
  &lt;/p&gt;
  &lt;table class="table"&gt;
      &lt;tr&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.First().PurchaseRequest_)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.First().Date)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.First().Requestor)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.First().Vendor)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.First().DateOrdered)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.First().ConfirmedWith)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(model =&gt; model.First().WorkOrder_)
          &lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
      &lt;/tr&gt;
  </code></pre>