<p>What do I put in my order by??  I want to order by Name.  I have moved the orderby after the distinct because I read that it needs to be done last.</p>

<pre><code>   var result = (from r in db.RecordDocs
                  where r.RecordID == recordID
                  select new
                             {
                                 DocTypeID = r.Document.DocType.DocTypeID,
                                 Name = r.Document.DocType.Name,
                                 Number = r.Document.DocType.Number
                             }
                 ).Distinct().OrderBy( );
</code></pre>

Just do
```
```
.OrderBy(doc => doc.Name)
```
```