title: Override default behavior of comparison operators in JavaScript
body: <p>I have a custom Javascript class (created using <a href="http://ejohn.org/blog/simple-javascript-inheritance/" rel="noreferrer">John Resig's Simple Javascript Inheritance</a>). I want to be able to compare two instances of this class, using the <code>==</code>, <code>&lt;</code>, <code>&gt;</code>, <code>&gt;=</code>, and <code>&lt;=</code> symbols.</p>
  
  <p>How do I override the comparators of my custom class?</p>