title: Iterating / printing object of arrays into HTML while keeping order in Angular 7
body: <p>I have this object of arrays with data about appointments:</p>
  <p><a href="https://i.stack.imgur.com/RRyaR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RRyaR.png" alt="enter image description here" /></a></p>
  <p>So essentially it is a collection of dates (the keys) with an array of objects. Every element in the array is an object of appointment data like Day, Subject, Client and Duration. So december 2 has two appointments, while 9 december has three, etc.</p>
  <p>I want to display to iterate through it and display it in this table format:</p>
  <p><a href="https://i.stack.imgur.com/EB1MA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EB1MA.png" alt="enter image description here" /></a></p>
  <p>but trying to display it using following HTML:</p>
  <pre><code>&lt;div *ngFor=&quot;let detail of details&quot;   class=&quot;card-body&quot;&gt;
  &lt;table class=&quot;table table-striped&quot;&gt;
    &lt;thead&gt;
    &lt;tr&gt;
    &lt;th&gt;  Day &lt;/th&gt;
    &lt;th&gt;Duration&lt;/th&gt;
    &lt;th&gt; Subject&lt;/th&gt;
    &lt;th&gt;Client&lt;/th&gt;
    &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tfoot&gt;
    &lt;tr *ngFor=&quot;let detaill of detail&quot;&gt;
    &lt;td&gt; &lt;small&gt;{{detaill.day}}&lt;/small&gt;&lt;/td&gt;
    &lt;td&gt; &lt;small&gt;{{detaill.duration}} &lt;/small&gt; &lt;/td&gt;
    &lt;td&gt;&lt;small&gt;{{detaill.subject}}&lt;/small&gt; &lt;/td&gt;
      &lt;td&gt;&lt;small&gt;{{detaill.client}} &lt;/small&gt;&lt;/td&gt;
    &lt;/tfoot&gt;
  </code></pre>
     
    
  <p>it gives me this error:</p>
  <p><code>Error: Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays.</code></p>
  <p>i tried to transform them into arrays, with <code>Object.entries(appointments)</code> but doing so, it messed up the order of the dates.</p>
  <p>What can I do to display the table as I wish?</p>