Comparing version 7.11.0 to 7.11.1
@@ -70,4 +70,10 @@ 'use strict'; | ||
if (options.sort) { | ||
const sort = (typeof options.sort === 'string' || Array.isArray(options.sort) ? { key: options.sort } : options.sort); | ||
if (options.sort || | ||
options.from !== undefined || // Consider explicit start from zero as sorted | ||
options.count) { | ||
const sort = (options.sort ? (typeof options.sort === 'string' || Array.isArray(options.sort) ? { key: options.sort } | ||
: options.sort) | ||
: { key: this.primary, order: 'ascending' }); | ||
const order = (sort.order === 'descending' ? 'desc' : 'asc'); | ||
@@ -74,0 +80,0 @@ selection = selection.orderBy(RethinkDB[order](Criteria.row(sort.key))); |
{ | ||
"name": "penseur", | ||
"description": "Lightweight RethinkDB wrapper", | ||
"version": "7.11.0", | ||
"version": "7.11.1", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hueniverse/penseur", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72761
1657