title: LINQ OrderBy not ordering .. changing nothing .. why?
body: <p>Any idea why the LINQ OrderBy is not working in following code, (have no errors but method does not sort ...)</p>
  
  <p>First my own type</p>
  
  <pre><code>public class IQLinksView
      {
          public int id { get; set; }
          public int catid { get; set; }
          public int? viewed {get;set;}
          public string name {get;set;}
          public string desc {get;set;}
          public string url {get;set;}
          public string pic {get;set;}
          public string cat {get;set;}
      }
  </code></pre>
  
  <p>then query :</p>
  
  <pre><code>IQueryable&lt;IQLinksView&gt; newView = 
                from links in this.emContext.tbl_otherlinks
                select new IQLinksView { id = links.pklinkid, catid =
                links.tbl_catgeory.pkcategoryid, viewed = links.linkviewed, name = links.linkname, 
                desc = links.linkdesc, pic = links.linkpicture,   url = links.linkurl, cat =
                links.tbl_catgeory.categoryname };
  </code></pre>
  
  <p>Untill here all fine :-), but then</p>
  
  <pre><code>newView.OrderBy(x =&gt; x.viewed);
  </code></pre>
  
  <p>just changes nothing,... Page is loading results showing ... but no ordering ... sniff</p>
  
  <p>i have Try with (creating a comparer object ... ):</p>
  
  <pre><code>newView.OrderBy(x =&gt; (Int32)x.viewed, new CompareIntegers());
  </code></pre>
  
  <p>same result, no ordering ... </p>
  
  <p>I do have workarounds but just wondering what is missing ....</p>
  
  <p>Any suggestions will be appreciated thanks a lot :-)</p>