doniyor
doniyor

Reputation: 37904

what is the traditional way of sorting search results?

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:

  1. with Jquery's load() function, i load the part of the page where results are
  2. i heard of dajaxice which does the similiar job

this 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

Answers (1)

user2286078
user2286078

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

Related Questions