Comment by callmeed
15 years ago
So, if you're implementing this in a framework like Django or Rails, can you get a result set in this order directly from a query? Or do you have to query then sort?
15 years ago
So, if you're implementing this in a framework like Django or Rails, can you get a result set in this order directly from a query? Or do you have to query then sort?
In Django, you could make the ranking score a property of the model and then do query.order_by('-score').