title: BinarySearch not having expected results
body: <p>I have populated a sorted list of dates(stored as strings in the format dd/mm/yyyy) from an xml file using xpath.</p>
  
  <p>However when querying the list to see if a date exists within the list I always get negative result(i.e. doesnt exist) even though i have hardcode the query string to match a date within the list.</p>
  
  <p>However, when doing a string compare on the index which contains the queried string I get 0 indicating the strings are identical.</p>
  
  <p>What can cause this odd behaviour?</p>
  
  <p>As requested here is the code</p>
  
  <p>Holidays is populated by:</p>
  
  <pre><code>while (iter.MoveNext())
  {
      XPathNavigator nav2 = iter.Current;
      XPathNodeIterator iter2 = nav2.SelectDescendants("date", "", false);
      while (iter2.MoveNext())
      {
          date = iter2.Current.ToString();
          holidays.Add(date);
      }
  }
  
  return holidays;
  </code></pre>
  
  <p>And the search is:</p>
  
  <pre><code>holidays = list.getHolidays();
  if(holidays.BinarySearch(DateTime.Now.ToShortDateString()) &gt; 0)
  </code></pre>
  
  <p>With the following XML being returned:</p>
  
  <pre><code>&lt;date&gt;01/01/2009&lt;/date&gt;
  &lt;date&gt;25/02/2009&lt;/date&gt;
  &lt;date&gt;10/04/2009&lt;/date&gt;
  &lt;date&gt;13/04/2009&lt;/date&gt;
  &lt;date&gt;04/05/2009&lt;/date&gt;
  &lt;date&gt;25/05/2009&lt;/date&gt;
  &lt;date&gt;31/08/2009&lt;/date&gt;
  &lt;date&gt;25/12/2009&lt;/date&gt;
  &lt;date&gt;28/12/2009&lt;/date&gt;
  </code></pre>