title: How to achieve multiple sorting levels in Django ORM Queries
body: <p>On the below Posts model , I need to sort the posts by both date and likes.
  the results should be last 24 hr posts ,sorted by likes , then the next day posts sorted by likes , it goes on..</p>
  <pre><code>class Posts(models.Model):
      comment_text= models.CharField(max_length=1000)
      date        = models.DateTimeField(default=timezone.now())
      likes       = models.IntegerField(default=0)
  </code></pre>
  <p>views.py</p>
  <pre><code>latest=Posts.objects.filter().order_by(-date,-likes)
  </code></pre>
  <p>the above query is not giving the desired results , let us say if there are two posts created at 07/06/2021 at 1 pm which has 3 likes and  another one at 1:30 pm which as 1 like.</p>
  <p>Then the post created at 1:30 pm with 1 like comes on top instead of the post at 1 pm with 3 likes</p>