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:

On Dec 2, 2011, at 3:58 PM, Samuel M. 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

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

cr

I’m reading Chris P.'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:

On Dec 2, 2011, at 14:33 , Samuel M. 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 P.'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.

On Sat, Dec 3, 2011 at 3:16 AM, Ryan D. [email protected]
wrote:

to look like… :confused:

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

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

Kind regards

robert

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs