and i see api like this:--
function map(doc) {
// sort by last name, first name, and age
emit([doc.lastName, doc.firstName, doc.age]);
}
db.query(map).then(function (result) {
// handle result
}).catch(function (err) {
console.log(err);
});but i want to sort data order by desc or asc .use sql like this :
select * from table order by lastName deschow to do it ? thanks!!
You received this message because you are subscribed to the Google Groups "PouchDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pouchdb+u...@googlegroups.com.
To post to this group, send email to pou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pouchdb/64b38095-261c-467c-9259-87ffd4aae5ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.