title: How to do custom ordering of a Django queryset?
body: <p>A little background about our specific problem -></p>
  
  <p>We are trying to build a Q &amp; A site, much like Stackoverflow.<br>
  People can come and ask questions and other people reply.</p>
  
  <p>So like SO (<a href="https://stackoverflow.com/questions">https://stackoverflow.com/questions</a>) we have a questions page. Now the problem we're having is that we have this model :</p>
  
  <pre><code>class Questions(models.Models):   
      user = person
      question = CharField   
      number_of_replies = IntegerField  
      datetime = DateTime
  </code></pre>
  
  <p>The resultant queryset ( or list ) is determined by a combination of various factors like when it was posted, how many people replied to it, etc.</p>
  
  <p>Since there's been confusion related to the question i'll clarify it ->
  This is the kind of output I'm looking for : </p>
  
  <p>This is how the final order will be -></p>
  
  <ol>
  <li>Question c posted 10 mins ago, 0 replies  </li>
  <li>Question f posted 1 min ago, 2 replies  </li>
  <li>Question b posted 5 mins ago, 1 reply
  etc.<br>
  so there is no one-dimensional order, the order is a function of various parameters</li>
  </ol>