From: Michael Sung Date: 2012-06-11T07:40:12+09:00 Subject: Re: Beginner question: Bubble sort using array.each_index Thank you for clearing that up. The reason I google'd and used that algorithm is because Chris Pine states that we should try to alphabetize an array of user-input words, without using the sort method: http://pine.fm/LearnToProgram/?Chapter=07 Thus, I wrote: word = 'word' listOfWords = [] while word != '' puts 'Enter a word and press enter: ' word = gets.chomp.downcase listOfWords.push word end listOfWords.pop But became stuck at how I could alphabetize the array, using only the things we have learned so far. If you have a better way I could accomplish this without using the previously described algorithm, I would very much appreciate it. It's something I've been struggling with all night. -- Posted via http://www.ruby-forum.com/.