Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

array sort by swift

students.sort(by: >)
print(students)
// Prints "["Peter", "Kweku", "Kofi", "Akosua", "Abena"]"
Source by developer.apple.com #
 
PREVIOUS NEXT
Tagged: #array #sort #swift
ADD COMMENT
Topic
Name
2+4 =