Write a function to sort an array of integers in ascending order in Ruby

Ruby
🤖 Code Explanation
This code defines a method called sort_array, which accepts an array as an argument. The method sorts the array in ascending order and returns the sorted array.

More problems solved in Ruby


















