RUBY-331 fix sort on Collection#map_reduce
This commit is contained in:
parent
e613880922
commit
ec97cd6d53
|
@ -611,6 +611,9 @@ module Mongo
|
|||
hash['map'] = map
|
||||
hash['reduce'] = reduce
|
||||
hash.merge! opts
|
||||
if hash[:sort]
|
||||
hash[:sort] = Mongo::Support.format_order_clause(hash[:sort])
|
||||
end
|
||||
|
||||
result = @db.command(hash)
|
||||
unless Mongo::Support.ok?(result)
|
||||
|
|
Loading…
Reference in New Issue