Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift sort array

let sortedUsers = users.sorted {
    $0.firstName < $1.firstName
}
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #swift #sort #array
ADD COMMENT
Topic
Name
5+4 =