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

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


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

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours