Titanium sqlite ORDER BY statement
问题 Using Titanium appcelerator. How can i sort my database with an sql query which is activated on a button click. my code so far is: SortButton.addEventListener('click',function(e){ sortList(); }); function sortList() { db.execute("SELECT * FROM SavedList ORDER BY SavedListed ASC"); } 回答1: Your code : db.execute("SELECT * FROM SavedList ORDER BY SavedListed ASC"); is correct. Just open database before db.execute and close it after db.execute. It will work. To open database : var db = Ti