mongodb/mongo-ruby-driver — pull request #291 by estolfo (2013-10-25 21:00:51+00:00)
Title: Extra options are merged into the selector so ensure OrderedHash

In Ruby version < 1.9:
When extra options are passed to command and the selector is only one key big, the selector needs to be converted to an OrderedHash so key order is preserved upon merge!