If you have an array with that data in JavaScript you can simply use the sort method:
var a = [{...}, {...}, {...}];
a.sort(function(a, b) {
return b.views - a.views;
});
console.log(a[0]) //{ "_id": "id", "_rev": "123456", "author": "john", "views": "10" }
console.log(a[1]) //{ "_id": "id", "_rev": "123456", "author": "jake", "views": "7" }
If you want to only have the to most viewed records you can use the slice method
var a = [...];
a.sort(...);
a = a.slice(0, 2);