title: JavaScript array.sort doesn't work on Array of Objects
body: <p>For some reason I can't sort my Array of Objects using Sort Function:</p>
  <pre><code>FullHistory.sort(function(a, b){
  return a.Date.localeCompare(b.Date);
  });
  </code></pre>
  <p>When I use console.log() - It returns: -1/0/1, but the Array's Order is not changing at all</p>
  <p><a href="https://i.stack.imgur.com/puwCw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/puwCw.png" alt="Evidence" /></a></p>
  <p>The rest of my Code:</p>
  <pre><code>let FullHistory = [];
  
      CurrentTitle = $(data).find(&quot;.normal_header&quot;).text().replace(&quot; Episode Details&quot;, &quot;&quot;);
      
      $($(data).find('.spaceit_pad').get().reverse()).each(function () {
          FullHistory.push({ Title: CurrentTitle, Ep: $(this).text().replace(&quot;Ep &quot;, &quot;&quot;).split(',')[0], Date: $(this).append(&quot;:00&quot;).text().replace(&quot;Ep &quot;, &quot;&quot;).replace(&quot;watched&quot;, &quot;&quot;).replace(&quot; Remove&quot;, &quot;&quot;).split(&quot;,&quot;)[1].replace(&quot;on &quot;, &quot;&quot;).replace(&quot;at &quot;, &quot;&quot;).replace(&quot;  &quot;, &quot;&quot;) });
      });
  </code></pre>
  <p>I tried: changing let to var, using if statements in Sort Function, changing types, using Lodash Lib.</p>