title: Replacement for > and < operator
body: <p>Is there a replacement for the greater/less than operator (&lt;,>)? </p>
  
  <p>I am trying to sort my array on descending order here but i cannot use the operators in the environment i am working in.</p>
  
  <p>Here is the code that i use to order my array with strings in it on descending order:</p>
  
  <pre><code>// descending order
  animals.sort(function (a, b) {
  if (a &gt; b) {
      return -1;
  }
  if (b &gt; a) {
      return 1;
  }
  return 0;
  });
  console.log(animals);
  // ["elephant", "dog", "cat", "bee", "ant"]
  </code></pre>