Use couch_view:less_json_ids when comparing view row ids

Fix by @davisp, githubbery by @rnewson.

BugzID: 28181
Merge pull request #147 from cloudant/28181-view-ordering

Use couch_view:less_json_ids when comparing view row ids