Skip to content

Glossary: Swift Basics

sorted

Also written: sorted()

A collection method that returns a new sorted array, smallest first, or in the order a closure decides.

Where the book teaches it

Related terms

mapComparable