title: How to sort items by date in compose?
body: <p>I have a list of items and I want to sort them by date. And also I have this data class which contains the date.</p>
  <pre><code>data class Completed(
      @PrimaryKey
      val id:Int? = null,
      val title:String = &quot;&quot;,
      val duration:String = &quot;&quot;,
      val date:String = &quot;&quot;
  )
  </code></pre>
  <p>I want to use the date variable to sort the items. Also the date should appear just one time, for example if you have a list of items in this day, it should not be like this picture below:</p>
  <p><a href="https://i.stack.imgur.com/UdEuI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UdEuI.jpg" alt="enter image description here" /></a></p>
  <p>Instead the date 15 September should appear one time, how can do that?</p>