Bronze Challenge #1 and #2

Here’s my solution to the Bronze Challenge #1 since I didn’t see it posted previously. I actually came across this when reading the documentation. Replace the sorted(by:) method with sort(). sort() mutates the original array.

var volunteerCounts = [1, 3, 40, 32, 2, 53, 77, 13]
volunteerCounts.sort { (i, j) in i < j }
volunteerCounts  // returns the sorted array

Bronze Challenge #2:

var volunteerCounts = [1, 3, 40, 32, 2, 53, 77, 13]
volunteerCounts.sort(by: <)