title: Sorted Set in iOS
body: <p>I have a Set of objects, let's say Fruits:</p>
  
  <pre><code>let uniqueFruits = Set(Fruit("Apple"), Fruit("Banana"), Fruit("Orange"))
  </code></pre>
  
  <p>And want to sort them based on a certain atteribute. In this case "size".</p>
  
  <p>I cannot find a way to do this based on the documentation from Apple:
  <a href="https://developer.apple.com/reference/foundation/nsmutableset" rel="noreferrer">https://developer.apple.com/reference/foundation/nsmutableset</a></p>
  
  <p>How can I sort a Set by a certain attribute?</p>