title: EWS FindItems OrderBy - Sort by EmailMessageSchema.From Incorrect Order
body: <p>I am calling the EWS FindItems() method with an OrderBy on my View. The results are returned in the correct order if I use various ItemSchema.* values (ex. ItemSchema.DisplayTo, ItemSchema.Importance, ItemSchema.Subject). </p>
  
  <p>But if I want the results sorted by EmailMessageSchema.From as the results are in an odd order that I can not understand and is not acceptable to my users.</p>
  
  <p>Sorts Correctly: ItemSchema.Subject</p>
  
  <pre><code>ItemView view = new ItemView(20, 0, OffsetBasePoint.Beginning);
  view.PropertySet = new PropertySet(BasePropertySet.IdOnly);
  view.OrderBy.Add(ItemSchema.Subject, SortDirection.Ascending);  
  var findResults = service.FindItems(new FolderId(emails.CompositeUniqueFolderId), view);
  </code></pre>
  
  <p>Sorts Incorrectly: EmailMessageSchema.From</p>
  
  <pre><code>ItemView view = new ItemView(20, 0, OffsetBasePoint.Beginning);
  view.PropertySet = new PropertySet(BasePropertySet.IdOnly);
  view.OrderBy.Add(EmailMessageSchema.From, SortDirection.Ascending);  
  var findResults = service.FindItems(new FolderId(emails.CompositeUniqueFolderId), view);
  </code></pre>
  
  <p>Odd 'From' Order:</p>
  
  <ol>
  <li>MXX QA Team</li>
  <li>Shahzad Iqbal</li>
  <li>Kim Stevens</li>
  <li>Vikram Keswani</li>
  <li>Ulrich Patzer</li>
  <li>Shahzad Iqbal</li>
  <li>Shahzad Iqbal</li>
  </ol>
  
  <p>If I sort by Descending the entries reverse in order.  Emails #6 and #7 have a different SMPT address from #2. The pattern is not clear when looking at the SMTP addresses. The results do seem to be grouped by Address.MailboxType. That is the only slight pattern I can see.</p>
  
  <p>How can I get the FindItems() results to sort correctly by EmailMessageSchema.From?</p>