rails/rails — pull request #11924 by UncleGene (2013-08-17 20:25:36+00:00)
Title: Fix FinderMethods#last and #first default order.

Addresses #11917 ( #last(N) fails with joins on sqlite )
and #11774 ( unordered #first makes has_one association fragile / dependent on order of records returned by database )