Is it possible to receive sorted results from an IndexedDB query? If not, what is the best way to go about sorting results?
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.
You can get items sorted by the object store’s key or any index’s order using IDBObjectStore.openCursor, IDBIndex.openCursor, and IDBIndex.openKeyCursor.
Note that with the speed implementations are moving, it’s probably a good idea to use http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html