title: How do I implement Swift's Comparable protocol?
body: <p>How do I use the Comparable protocol in Swift? In the declaration it says I'd have to implement the three operations &lt;, &lt;= and >=. I put all those in the class but it doesn't work. Also do I need to have all three of them? Because it should be possible to deduce all of them from a single one.</p>