Swift dictionary sort() - how to? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Swift dictionary sort() - how to?

How to sort a dictionary in swift using sort() method? Tutorial says it's possible, but I only managed sorting it with sorted()

20th Oct 2018, 7:10 AM
Andrew Furletov
Andrew Furletov - avatar
1 Answer
+ 1
When possible please refer back to Swifts documentation. Using the documentation and learning from it will greatly advance your skills as a programmer. https://developer.apple.com/documentation/swift/array/1688499-sort
29th Oct 2018, 8:38 PM
Clinton Stanley
Clinton Stanley - avatar