title: How to sort structures by property in Swift
body: <p>I am trying to sort an array of structure depending on its property.</p>
  
  <p>Lets say I want to sort an array of <code>NSViews</code> by the x coordinate. </p>
  
  <p>How can I achive this?</p>