title: Filter observableArray by condition
body: <p>I want to be able to filter a list by a specific condition. I dont want to use any other observble arrays to store the filtered items in, i want to overwrite the current array.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class='list'&gt;
      &lt;select data-bind="options: storedProceduresInDB1, value: filterStoredProceduresInDB1By, optionsText: 'Profile', optionsValue: 'Profile', optionsCaption: 'Filter by Profile'"&gt;&lt;/select&gt;
      This will only filter the list below
      &lt;p&gt;Stored procedures:&lt;/p&gt;
      &lt;select multiple="multiple" height="5" data-bind="options:storedProceduresInDB1, optionsText: 'Name', selectedOptions:selectedStoredProceduresInDb1"&gt;&lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>var SProcsViewModel = function () {
      var self = this;
      self.storedProceduresInDB1 = ko.observableArray([{
          Name: "Sp1",
          Id: 1,
          Profile: 100
      }, {
          Name: "Sp2",
          Id: 2,
          Profile: 100
      }, {
          Name: "Sp3",
          Id: 3,
          Profile: 200
      }, {
          Name: "Sp4",
          Id: 4,
          Profile: 300
      }]);
  
      self.filterStoredProceduresInDB1By = ko.observable();
      self.selectedStoredProceduresInDb1 = ko.observableArray();
      self.selectedStoredProceduresInDb2 = ko.observableArray();
  
      return self;
  };
  
  ko.applyBindings(new SProcsViewModel());
  </code></pre>
  
  <p><a href="http://jsfiddle.net/LrqyR/2/" rel="nofollow">JSFiddle</a></p>
  
  <p>EDIT: If i choose Profile 100 i want to overwrite storedProceduresInDB1 with all items that have profile 100. As you can see in <a href="http://jsfiddle.net/LrqyR/5/" rel="nofollow">JSFiddle2</a> i can't change data-bind to other Array.</p>