doctrine/mongodb — pull request #139 by gerryvdm (2013-10-03 08:26:51+00:00)
Title: Fix default sort order in Query Builder

cursor.sort() expects a value of 1 for ascending or -1 for descending. Calling Builder::sort($field) would result in a sort with a value of 0.

Resorting to a default ascending order when not having specified a sort order.