title: Sorting JSON alphabetically(with empty value at last)
body: <p>I have a JSON, that is formatted like:</p>
  
  <pre><code>account = [
       {"name":"Los Angeles", "country":"USA"},
       {"name":"Boston", "country":"USA"},
       {"name":"", "country":"USA"},
       {"name":"Chicago", "country":"USA"}
  ]
  </code></pre>
  
  <p>I am trying to sort this alphabetically A-Z BY NAME with empty name values at last.</p>
  
  <p>I have tried this, but, this sorts A-Z with empty values at first.</p>
  
  <pre><code>account.sort( function( a, b ) {
      return a.name &lt; b.name ? -1 : a.name &gt; b.name ? 1 : 0;
  });
  </code></pre>