Inequality operators and sorting in Python
<p>I have a collection (list) of objects. I want to be able to sort the objects without having to provide a callback (lambda function) to <code>sorted()</code> but instead, by implementing functions that could be used to ascertain strict (in)equality between objects of the same type - ala C++.</p>

<p>The <code>__eq__()</code> function implemented on a class allows equality checks. I can't seem to find any similar functions to implement <code>&lt;</code> and <code>&gt;</code> </p>

<p>How may I implement this in Python?</p>
