title: Convert sqlite query into NSPredicate for core data
body: <p>I am woking on a core data. I have one query in sqlite. Please help me how to write this for core data so that I can get the equivalent results.</p>
  
  <pre><code>SQLite Query: "select * from (select * from WORKDOCUMENT ORDER BY CREATEDDATE ) as WORKDOCUMENT GROUP BY DOCUMENTNAME"
  </code></pre>
  
  <p>Please help.
  Thanks in advance.</p>