From: matz@... (Yukihiro Matsumoto) Date: 2000-11-28T14:51:29+09:00 Subject: [ruby-talk:6599] Re: Question on sort! Hi, In message "[ruby-talk:6597] Question on sort!" on 00/11/28, Dave Thomas writes: |Someone asked about a strange inconsistency in Rubicon, and I didn't |know the answer. In light of the recent reverse! thread, I thought I'd |post it here: | | [ 1, 2, 3 ].sort! # => [1, 2, 3] | [ 1, 2 ].sort! # => [1, 2] | [ 1 ].sort! # => nil | [ ].sort! # => nil | |This seems strange. This is very preliminary behavior following a-bang-method-returns-nil-if-it-does-not-modify-the-recevier principle. The behavior shall be more thorough in the future. matz.