I’m using jQuery Mobile. How can I create a button which changes the sort order of a list?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Place your data in a separate structure which you sort, e.g.
From this, you can then dynamically populate your
listview.In the Button’s onclick event, you’ll have to do the following:
mylist)For more details on how to clear and repopulate list, see e.g. this SO question.