title: How can i sort data by three properties?
body: <p>I have the following array</p>
  <pre><code>let arr = [
      {
          &quot;creationDateTime&quot;: 1632180639045,
          &quot;pricePerUnitPerHour&quot;: 12,
          &quot;divisible&quot;: false,
      },
  
      {
          &quot;creationDateTime&quot;: 2504091567119,
          &quot;pricePerUnitPerHour&quot;: 12,
          &quot;divisible&quot;: true,
      },
  
      {
          &quot;creationDateTime&quot;: 1504095567183,
          &quot;pricePerUnitPerHour&quot;: 5,
          &quot;divisible&quot;: true,
      }, 
  ]
  </code></pre>
  <p>I need to make the ascending sorting by these three properties
  pricePerUnitPerHour/divisible/and creationDateTime</p>
  <p>So if for example two objects are having equal values in <code>pricePerUnitPerHour</code> then the sorting shoould be by divisible property. There <code>divisible:true</code> should be before the object where we have <code>divisible:false</code>.</p>
  <p>And on the end if they have two equal prices, divisible property is true for example the sorting should be done based on the timestamp - <code>creationDateTime</code></p>
  <p>I got stuck at</p>
  <pre><code> tableSort() {
      this.searchFilteredData.sort(
        function (a, b) {
          return b.pricePerUnitPerHour - a.pricePerUnitPerHour;
        });
    }
  </code></pre>