How to write a sorting program

I'm supposed to write my own sorting method for a list of words entered
by a user to reappear in alphabetical order without using recursion. I
don't know where to start from or how to go about this... Someone please
help me out :slight_smile:

路路路

--
Posted via http://www.ruby-forum.com/.

Your teacher is probably a member of this mailing list. Why don't you ask them for some help?

cr

路路路

On Dec 2, 2011, at 3:58 PM, Samuel Mensah wrote:

I'm supposed to write my own sorting method for a list of words entered
by a user to reappear in alphabetical order without using recursion. I
don't know where to start from or how to go about this... Someone please
help me out :slight_smile:

Your teacher is probably a member of this mailing list. Why don't you
ask them for some help?

cr

I'm reading Chris Pine's book - Learn to program... that's where the
assignment is from. I'm not sure I understand how he wants the program
to look like... :confused:

路路路

--
Posted via http://www.ruby-forum.com/\.

Get some scraps of paper, number them, mix them up, and work through it manually until you like your solution.

路路路

On Dec 2, 2011, at 14:33 , Samuel Mensah wrote:

Your teacher is probably a member of this mailing list. Why don't you
ask them for some help?

cr

I'm reading Chris Pine's book - Learn to program... that's where the
assignment is from. I'm not sure I understand how he wants the program
to look like... :confused:

Samuel, if you need some idea of how sorting algorithms work you'll
find plenty on wikipedia.

Kind regards

robert

路路路

On Sat, Dec 3, 2011 at 3:16 AM, Ryan Davis <ryand-ruby@zenspider.com> wrote:

On Dec 2, 2011, at 14:33 , Samuel Mensah wrote:

Your teacher is probably a member of this mailing list. Why don't you
ask them for some help?

cr

I'm reading Chris Pine's book - Learn to program... that's where the
assignment is from. I'm not sure I understand how he wants the program
to look like... :confused:

Get some scraps of paper, number them, mix them up, and work through it manually until you like your solution.

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/