OrderByDescending() without effect
<p>I have that class</p>

<pre><code>public class jQGridModel
{
    public List&lt;jQGridModelItem&gt; Items { get; set; }

    public class jQGridModelItem
    {
        public DBUser UserItem { get; set; }
        public int ItemsSold { get; set; }
    }
}
</code></pre>

<p>and the <code>DBUser</code> class (generated by Entity Framework)</p>

<pre><code>public class DBUser 
{
    public string UserName { get; set; }
    public string UserID { get; set; }
    public string PromoCode { get; set; }
    ...
}
</code></pre>

<p>I have <code>jQGridModel</code> object with some <code>Items</code>. And here's the 'simple' problem - I want to sort the <code>Items</code> list asc/desc basing on the <code>UserName</code> </p>

<p>I've tried</p>

<pre><code>jQGridModel result = new jQGridModel();
result.Items = GetItems();

result.Items = result.Items.OrderByDescending(x =&gt; x.UserItem.UserName).ToList();
</code></pre>

<p>but I see that the collenction order does't change. What am I doing wrong ?</p>

<p>The complete code:</p>

<pre><code>        var query = (from x in db.User
                     where (...)
                     select x);

        var totalRecords = query.Count();

        jQGridModel result = new jQGridModel();

        result.Items = query.OrderBy(x =&gt; x.UserID).Skip(page * pageSize)
                            .Take(pageSize)
                            .Select(x =&gt; new jQGridModel.jQGridModelItem
                            {
                                UserItem = x,
                                ItemsSold = (from o in db.Order
                                             where
                                                 o.PromoCode.Equals(x.PromoCode)
                                             select o).Count()
                            })
                            .ToList();


  result.Items = result.Items.OrderByDescending(x =&gt; x.UserItem.UserName).ToList();
</code></pre>
