Reputation: 37904
I am stuck in this issue since yesterday.
i have a page which i am writing in django/python. and i have a search function in project. one searches and comes to result page. HERE is the issue:
which possibilities are there to implement the sort tool? what i know are:
load()
function, i load the part of the page where results arethis is all what i know. now i am fighting with load
and having difficulties. is there any other technologies in django to make sort the results
?
Upvotes: 0
Views: 61
Reputation:
You can sort it in Django using the instructions found here: Good ways to sort a queryset? - Django.
Instead of using jQuery, I'd recommend that you use underscore.js to sort your array.
It depends on where you'd like to sort your array and which framework you're more comfortable with, although I would lean towards the Django solution as it allows you to avoid an import.
Upvotes: 2