title: Can i sort query set return objects in order to function result
body: <p>I am writing a web based music application and I want implement some feature that user can see most favor album in last week-month-year.
  so this is my model :</p>
  
  <pre><code>class album(models.Model):
     def get_weely_count():
        ...
     def get_monthly_count():
        ...
  
     def get_yearly_count():
        ...
  
  class like(models.Model):
     created_at = models.DateField()
     albumID = models.ForeignKey(Album)
  </code></pre>
  
  <p>Now I want to receive albums that most liked in last week or last month or last year,I want done some thing like this(but I can not):</p>
  
  <pre><code>Album.objects.all().order_by('get_weekly_count')
  </code></pre>
  
  <p>can any one help me to fix it or give another approach to achieve that goal??</p>