title: Django Filter on Distinct with orderby created at
body: <p>How can I filter with distinct and order by</p>
  <pre><code>IncomingCallRecording.objects.filter().order_by(&quot;lead_id&quot;,&quot;-created_at&quot;).distinct(&quot;lead_id&quot;)
  </code></pre>
  <p><strong>Problem:</strong>
  Order by is not working with created at</p>
  <p>Is there an alternative solution that might help</p>