Skip to content

Commit b4da1ae

Browse files
1 parent d88f093 commit b4da1ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datastore/transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Transaction.prototype.commit = function(callback) {
182182

183183
// Group entities together by action (delete or save).
184184
.sort(function (a, b) {
185-
return a.method > b.method;
185+
return a.method > b.method ? 1 : a.method < b.method ? -1 : 0;
186186
})
187187

188188
// Group arguments together so that we only make one call to each method.

0 commit comments

Comments
 (0)