Sorting with a Key Function

Premium

Learn how to use the key= parameter of sorted() to control sort order — by length, absolute value, or case-insensitive alphabetical order.