use destructive sort on array in Hash#to_param for performance gains.
Check https://gist.github.com/vipulnsward/6aad158c06a22f931a71 to see the gains.
Merge pull request #10453 from vipulnsward/destructive_sort

Speed up Hash#to_param by switching from #sort to #sort!