title: JS Sort - Determine if Anything Changed?
body: <p>I'm using array.sort to sort an array of objects.</p>
  
  <p>Is there someway to determine if the order of those objects changed other than doing a comparison myself?  Some in-built JS function?  I don't need to know the # of changes, just that there was at least 1 change.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I'm sorting custom objects, e.g.:</p>
  
  <pre><code>[
   { 'value' : 5, 'name' : 'foo'},
   { 'value' : 3, 'name' : 'bar'},
   { 'value' : 10, 'name' : 'js'}
  ]
  </code></pre>
  
  <p><strong>Update 2:</strong></p>
  
  <p>I'm considering adding an additional custom property 'order' as I generate the objects and then checking to see if 'order' is or isn't sequential after the .sort.  Is there a faster/better method?</p>