O'Reilly logo

Swift Programming: The Big Nerd Ranch Guide by John Gallagher, Matthew Mathias

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bronze Challenge

In this chapter, you used sorted(by:) to sort a collection from smallest to largest. But if you just want to sort a collection in an ascending fashion, then there is a simpler method to use. Use the documentation to find this method. Also apply this method to your solution to the previous bronze challenge.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required