From: Jorge Domenico Bucaran Romano Date: 2007-05-09T12:54:26+09:00 Subject: Implementation of the object.sort method. Hi, Can you show me an implementation of the Array.sort method? This implementation would be demonstrative only. This would handle when a block is passed. The reason is I have trouble understanding why the following code works as expected: [3,2,1,4].sort do |a,b| a <=> b end I know it will sort my array but I don't understand the way this method works because other tests I have made bring none results. Regards, Jorge. -- Posted via http://www.ruby-forum.com/.