title: Custom Cursor query to get data from content://sms/sent
body: <p>I find this function in web android developer offficial </p>
  
  <p><code>public final Cursor query (Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal)</code></p>
  
  <p>Now, I want to get sms from content://sms/sent , with thread_id of sms I will get only sms newest.</p>
  
  <p>I will explain by example:</p>
  
  <pre><code>id   | thread_id |        phone     |       body
  
  10       47
  9        46 
  8        47
  7        45 
  6        47 
  5        43
  4        45
  3        42
  2        41
  1        47
  </code></pre>
  
  <p>For result I want to receive is:</p>
  
  <pre><code> id   | thread_id |        phone     |       body
  
  10       47
  9        46     
  7        45 
  5        43
  3        42
  2        41
  </code></pre>
  
  <p>How must I do with query above?
  Thanks.</p>