title: How to sort list of React components based on different properties?
body: <p>So, this is a code snippet from my frontend.</p>
  
  <pre><code>{store.results.data.map( result =&gt;
    &lt;ResultItem 
      key={result.id}
      title={result.title}
      description={result.description}
      start_date={result.start_date}
      end_date={result.end_date}
      vendor_name={result.vendor.name}
      buyer_name={result.buyer.name}
      preview_file={result.preview_file}
      status={result.status}
    /&gt;
  )}
  </code></pre>
  
  <p>Basically, I'm mapping all the data in my Redux store into ResultItems. I want to be able to sort all my <code>ResultItems</code> by different properties like <code>title</code>, <code>description</code>, <code>start_date</code>, <code>end_date</code>, <code>vendor_name</code>, and <code>buyer_name</code>.</p>
  
  <p>Any ideas on how to do that?</p>