Re: Own sort method

2012-11-26 Thread Robert Klemme
On Mon, Nov 26, 2012 at 1:38 PM, Artem B. wrote: >> Why? > It was be an exercise of learning guide :) > > Thanks, and what do you think about my code? You are not sorting Arrays but Arrays which must be filled with objects that respond to #[] and return items which can be compared with #< (line 4

Re: Own sort method

2012-11-26 Thread Robert Klemme
On Mon, Nov 26, 2012 at 12:45 PM, Artem B. wrote: > I have wrote my own sort method for array: Why? > http://pastebin.com/r4rDDs4A > > But now I want to compare my method with core-method, how can I do it? > Where can I find official core-method sort? https://github.com/ruby/ruby/blob/trunk/arr