title: show to sort coredata with date
body: <p>I am haing a Simple Iphone based apllication.In that Application coredata is is used for storing data.</p>
  
  <p>I have two fields.
      one Field is Mesage and other  field is date.I want to take the mesage which is sent within last 10 days.
  I know to this code is used for that..but how to implement this?????</p>
  
  <pre><code>sortedArray = [unsortedArray sortedArrayUsingFunction:sortByStringDate context:NULL]
  </code></pre>
  
  <p>how to write a query and how to implement this...Anybody help me to implement                              this.....Advance thanks</p>