title: order_by date_join in Django
body: <p>I am displaying user information to the admin dashboard I want to order Users by their join date.
  and on another page, I want to display only 10 users information which are recently logged in.</p>
  <p>I am filtering user data like this:</p>
  <pre><code>data = Profile.objects.filter(Q(user__is_superuser=False), Q(user__is_staff=False))
  </code></pre>
  <p>Model.py</p>
  <pre><code>class Profile(models.Model):
  user = models.OneToOneField(User,default=&quot;1&quot;, on_delete=models.CASCADE)   
  image = models.ImageField(upload_to=&quot;images&quot;,default=&quot;default/user.png&quot;)
  def __str__(self):
     return f'{self.user} profile'
  </code></pre>
  <p>Please help me to do this.</p>