title: Linq - Orderby not ordering
body: <p>I have a linq query that for whatever reason is not coming back ordered as i would expect it to.  Can anyone point me in the right direction as to why and what i am doing wrong?</p>
  
  <p>Code is as follows:</p>
  
  <pre><code>List&lt;TBLDESIGNER&gt; designer = null;
  
  using (SOAE strikeOffContext = new SOAE())
  {
     //Invoke the query
     designer = AdminDelegates.selectDesignerDesigns.Invoke(strikeOffContext).ByActive(active).ByAdmin(admin).ToList();
  }
  </code></pre>
  
  <p>Delegate:</p>
  
  <pre><code>public static Func&lt;SOAE, IQueryable&lt;TBLDESIGNER&gt;&gt; selectDesignerDesigns =
          CompiledQuery.Compile&lt;SOAE, IQueryable&lt;TBLDESIGNER&gt;&gt;(
          (designer) =&gt; from c in designer.TBLDESIGNER.Include("TBLDESIGN")
                        orderby c.FIRST_NAME ascending
                        select c);
  </code></pre>
  
  <p>Filter ByActive:</p>
  
  <pre><code>public static IQueryable&lt;TBLDESIGNER&gt; ByActive(this IQueryable&lt;TBLDESIGNER&gt; qry, bool active)
      {
          //Return the filtered IQueryable object
          return from c in qry
                 where c.ACTIVE == active
                 select c;
  
      }
  </code></pre>
  
  <p>Filter ByAdmin:</p>
  
  <pre><code>public static IQueryable&lt;TBLDESIGNER&gt; ByAdmin(this IQueryable&lt;TBLDESIGNER&gt; qry, bool admin)
  {
      //Return the filtered IQueryable object
      return from c in qry
             where c.SITE_ADMIN == admin
             select c;
  
  }
  </code></pre>
  
  <p>Wondering if the filtering has anything to do with it?? </p>
  
  <p>Thanks in advance,
  Billy</p>