title: Sorting in react sorts in every component
body: <p>I am having an issue where when I sort in react it applys that sorting across the entire app.</p>
  
  <p>I have a main component that calls an api and then the data is placed into a state. That state then is passed into graph component. Then on the graph component page I sort it with the props passed.</p>
  
  <p>It should only apply on that component on those props shouldn't it ?</p>
  
  <pre><code>&lt;Total_active_today data={this.state.dataset.sort(function(a,b){
       return parseInt(b.active_today)  - parseInt(a.active_today);
  }).slice(0, 20)} /&gt;
  </code></pre>