From: James Gray Date: 2009-02-02T12:59:10+09:00 Subject: [ruby-core:21729] Re: [Feature #1084] request for: Array#sort_by! On Feb 1, 2009, at 8:56 PM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: [ruby-core:21709] [Feature #1084] request for: > Array#sort_by!" > on Sun, 1 Feb 2009 11:11:26 +0900, Rados��aw Bu��at rg> writes: > > |sort and sort! override it's version from Enumerable and sort_by is > directly from Enumerable, but for symmetry and consistency it would > be nice to have destructive sort_by! for Array. > > Despite how you expect, sort_by! is not faster than sort_by at all. > In fact, it would use sort_by internal then replace the receiver. Do > you still want the "dangerous" version? I do. :) I know I've typed this line a million times: a = a.sort_by { ��� } James Edward Gray II