#3 fix: the order_by clause works now. The ordering was corrupted when
documents were extracted from the ActiveRecord instance. Two related
test cases have been added.