Ruby - Arrays
What does the Ruby method
sort do when called on an array?sort do when called on an array?sortsort method arranges elements in ascending order by default.reverse which flips order, sort orders elements from smallest to largest.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions