title: Removing an item from a WinJS.Binding.List
body: <p>I looked at the Controls_ListViewWorkingWithDataSources MSDN sample to see how to remove an item from a WinJS.Binding.List and here's their solution. Please tell me there's an easier way.</p>
  
  <pre><code>if (list2.selection.count() &gt; 0) {
      list2.selection.getItems().done(function (items) {
  
          //Sort the selection to ensure its in index order
          items.sort(function CompareForSort(item1, item2) {
              var first = item1.index, second = item2.index;
              if (first === second) {
                  return 0;
              }
              else if (first &lt; second) {
                  return -1;
              }
              else {
                  return 1;
              }
          });
  
          //Work backwards as the removal will affect the indices of subsequent items
          for (var j = items.length - 1; j &gt;= 0; j--) {
              // To remove the items, call splice on the list, passing in a count and no replacements
              lettersList.splice(items[j].index, 1);
          }
      });
  </code></pre>