Update Rails 3.2 context to properly reorder results.

This is follow up for the commit
764eecbb20b3d672778d579c064e409ee1ad4c83