Ruby Programming – 20 – How to Write a Sort Method

Ruby programming tutorial. Write a method to sort an array.
★☆★ THE BEST EDITOR and IDE FOR PROGRAMMING ► http://bit.ly/Komodo-IDE-Learn-Ruby ★☆★

★☆★ SIGNUP TO GET MY RUBY BOOK FOR FREE ★☆★

http://bit.ly/free-book-signup

★☆★ FOLLOW ME BELOW ★☆★

Twitter ► http://bit.ly/jake-day-twitter

YouTube ► http://bit.ly/jake-day-youtube

Facebook ► http://bit.ly/jake-day-facebook

SoundCloud ► http://bit.ly/jake-day-soundcloud

★☆★ NOTES ★☆★

Comments

Baurzhan Konurbayev says:

No need to write “if reverse == false”, since reverse is boolean already, you can write “if reverse”

AdiArsenalFan! says:

thank you Jake! I like your tutorials and keep it up!

Kamil_boy says:

ive got a problem when i type:
puts “in reverse order: #{sortedlist (disney_movies, true)}” it says the true is a syntax error and it doesnt want to put it out

araa says:

Cool video but had to watch it at 1.5 or 2x speed.

Dada Da says:

Thank you Jake, I am subscribing to get in touch with your great job!
I have a question though: when you def a method like this in Ruby, it is outside of a class definition, so I wonder whether this is acceptable or does it go implicitely in a particular class (I m thinking class Object)?
I have some catch up work to do with all your tutorials.

Heena Gurbani says:

hi jacob ur lessons are superb….don’t u ve rails tutorials ?? thanku

Romanch Sharma says:

Why this is a method not a function please answer me.

Stamina says:

awesome! dude, thanks for these guides, VERY useful!

Kewendi says:

Why did you choose to make the argument default reverse = false? Could you have made it proper = true?

kelvin chege says:

i didnt watch yesterday

Bobby Gibbs says:

every lesson cannot see video clearly …. have to guess a lot …. but this lesson it is extra unclear

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!