title: how to filter by key in object array
body: <p>I am filtering data for angular material table. When the user select a column, then I want to filter data according the key selected. How can i achieve this? </p>
  
  <p><strong>data</strong></p>
  
  <pre><code>0: {id: "1", name: "G", progress: "58", color: "LD"}
  1: {id: "2", name: "Mel", progress: "37", color: "LD"}
  2: {id: "3", name: "Nos", progress: "29", color: "LD"}
  3: {id: "4", name: "Zane", progress: "81", color: "LD"}
  4: {id: "5", name: "Dave", progress: "98", color: "LD"}
  
  </code></pre>
  
  <p><strong>wanted data</strong></p>
  
  <pre><code>0: {name: "G", progress: "58", color: "LD"}
  1: {name: "Mel", progress: "37", color: "LD"}
  2: {name: "Nos", progress: "29", color: "LD"}
  3: {name: "Zane", progress: "81", color: "LD"}
  4: {name: "Dave", progress: "98", color: "LD"}
  
  
  </code></pre>