3 ms·
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
by callmeed 16y 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?
- endtime 16y agoIn Django, you could make the ranking score a property of the model and then do query.order_by('-score').