What's the difference between a.sort and a.sort! ?
$75
top 5
24
submissions
DONE
142 months

To sort an array a in Ruby, you could either do a.sort or a.sort! . What's the difference between the two? Discuss performance and end result. How would you use them? Provide one example where a.sort is better than a.sort! and one example where a.sort! is better than a.sort.
-
Submissions will be graded on the following criteria:
- Meets Deliverables
- Creativity
- Clarity
Reward Tiers
5 Winners
will receive $15 each
Leaderboard
$15.00 |
![]() |
Samuel Bostick Rochester Institute of Technology | |
$15.00 |
![]() |
Shohan Hasan New York University | |
$15.00 |
![]() |
Jesse Jones San Francisco State University | |
$15.00 |
![]() |
Jonathan Wang University of California at Berkeley |
Submission questions