On Nov 1, 4:23 pm, devi.webmas... / gmail.com wrote:
> > > The sort! is unnecessary, use sort (no exclamation)
>
> > Based on what criterion/criteria?
>
> I suppose I wasn't thinking. For some reason sort would be a cheaper
> operation than sort!, but sort involves object instantiation, which is
> much more expensive. My apologies.

They're actually not that different in this case. I also thought sort!
would be much quicker since it sorts in place, but it doesn't seem to
be when I benchmarked both of them. I just continued using sort! on
principle :)