how to sort a list ios swift code example Example: sort list ios swift var names = ["Jemima", "Peter", "David", "Kelly", "Isabella"] names.sort()