Fix 1.8.7 regression in 1ab7d7b5442e0b7a44838725dc623866f4f99fde

Array#sort_by! was added in Ruby 1.9.2.