title: Javascript sort object by property
body: <p>I have an array like this.</p>
  
  <pre><code>var word_list = [
      {text: "Lorem", weight: 13},
      {text: "Ipsum", weight: 10},
      {text: "Dolor", weight: 9},
      {text: "Sit", weight: 8},
      {text: "Amet", weight: 6},
      {text: "Consectetur", weight: 5}
  ];
  </code></pre>
  
  <p>How can I sort this with "text" or "weight". </p>