Programming With Swift
  • Home
  • About
  • Github
Sign in Subscribe

Sorted

A collection of 1 post
How to sort a dictionary by value with Swift
Swift

How to sort a dictionary by value with Swift

Every now and then you might need to sort a dictionary by value, luckily, dictionary comes with a sorted method built in. I am going to use the following dictionary as an example: let dictionary = [ "a": "A", "b": "B", "c"
04 Aug 2020 2 min read
Page 1 of 1
Programming With Swift © 2025
Powered by Ghost