title: Sorting (order_by) in list
body: <p>I am building a Blog App and I am trying to <code>sort</code> or <code>order_by</code> in list which contains multiple queries.</p>
  <p>models.py</p>
  <pre><code>class BlogPost(models.Model):
      user = models.ForeignKey(User, on_delete=models.CASCADE)
      title = models.CharField(max_length=30)
      date = models.DateTimeField(auto_now_add=True)
  
  class Comments(models.Model):
      user = models.ForeignKey(User, on_delete=models.CASCADE)
      blog_of = models.ForeignKey(BlogPost, on_delete=models.CASCADE)
      body = models.CharField(max_length=30, default='')
      date_added = models.DateTimeField(auto_now_add=True)
  </code></pre>
  <p>views.py</p>
  <pre><code>def mypage(request):
      query_1 = list(BlogPost.objects.filter(user=request.user).order_by('-date'))
  
      query_2 = list(Comment.objects.filter(user=request.user).order_by('date_added'))
  
  
      results = sorted(chain(query_1, query_2),key=attrgetter('date') , reverse=True)
  
      context = {'results':results}
      return render(reques, 'mypage.html', context)
  </code></pre>
  <p>But is showing</p>
  <blockquote>
  <p>'Comment' object has no attribute 'date'</p>
  </blockquote>
  <p>And I think this is because date field name is different in both model and i am sorting with only one, But i have no idea how can I sort with different field name.</p>
  <p>Any help would be much Appreciated. Thank You</p>