If the element type inside your collection conforms to&nbsp;<code>Comparable</code>&nbsp;protocol, you will be able to use&nbsp;<code>sorted()</code>&nbsp;in order to sort your elements with ascending order. The following Playground code shows how to use&nbsp;<code>sorted()</code>:<br>