From: jake kaiden Date: 2011-12-17T05:52:00+09:00 Subject: Re: Writing My Own Sorting Method (New to Ruby) Dave Aronson wrote in post #1037062 > Imagine if you have two 4-char strings inserted. > You'll have them at indices 4 and 5. Then you get a 5-char string, so > you insert it at 5. It will push the first 4-char string up by one. > (That's the one at 5, having been already pushed up once by the > second.). So, the 5-char one will be sandwiched between two 4-char > ones, not sorted. > good point! open hand to forehead... - j -- Posted via http://www.ruby-forum.com/.