Reorder elements of a query on the screen

Asked

Viewed 41 times

0

I have an application in Django and need to reorder the screen elements when the user decides to sort by date, popularity, etc..

I would not like to submit a new query each time the user selects a filter, I believe the best way would be to just reorder the already loaded elements, maybe using jquery, json.

I couldn’t find any material that could help me, would have some hint on how to implement or some site recommendation?

  • 1

    Present an example of table and json... how you are populating it?

  • I haven’t done it yet, hj the application just searches the database, populates a dict and displays on the screen.

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.