title: How to group by a key data in a Json
body: <p>I need to group by the results in a Json to show it nicely like requested by our product owner.</p>
  <p>I have a JSON organiced like this:</p>
  <pre><code>    {&quot;QuestionId&quot;:5097,&quot;OwnerId&quot;:187957,&quot;CultureId&quot;:&quot;es-CL&quot;,
  &quot;Section&quot;:&quot;Información Impositiva \/ Tributaria&quot;,&quot;Text&quot;:&quot;Recibo&quot;},
      {&quot;QuestionId&quot;:6587,&quot;OwnerId&quot;:187957,&quot;CultureId&quot;:&quot;es-CL&quot;,
  &quot;Section&quot;:&quot;Preguntas Específicas&quot;,&quot;Text&quot;:&quot;Por favor, cargue el documento&quot;},
      {&quot;QuestionId&quot;:6065,&quot;OwnerId&quot;:187957,&quot;CultureId&quot;:&quot;es-CL&quot;,
  &quot;Section&quot;:&quot;Preguntas específicas&quot;,&quot;Text&quot;:&quot;Cargue una copia de suministro.&quot;},
      {&quot;QuestionId&quot;:5393,&quot;OwnerId&quot;:187957,&quot;CultureId&quot;:&quot;es-CL&quot;,
  &quot;Section&quot;:&quot;Responsabilidad Social Empresarial y Anticorrupción&quot;,&quot;Text&quot;:&quot;En caso afirmativo, cargue su política anticorrupción&quot;},
      {&quot;QuestionId&quot;:6584,&quot;OwnerId&quot;:187957,&quot;CultureId&quot;:&quot;es-CL&quot;,
  &quot;Section&quot;:&quot;Preguntas Específicas&quot;,&quot;Text&quot;:&quot;Por favor, cargue el documento&quot;}
  </code></pre>
  <p>What I want to achieve is group by the key called &quot;Section&quot; in my JSON and obtain as a result something like this:</p>
  <pre><code>Section : &quot;Información Impositiva / Tributaria&quot;
  0
  QuestionId : 5097
  OwnerId : 187957
  CultureId : &quot;es-CL&quot;
  Text : &quot;Recibo&quot;
  Section : &quot;Preguntas Específicas&quot;
  1
  QuestionId : 6587
  OwnerId : 187957
  CultureId : &quot;es-CL&quot;
  Text : &quot;Por favor, cargue el documento&quot;
  2
  QuestionId : 6065
  OwnerId : 187957
  CultureId : &quot;es-CL&quot;
  Text : &quot;Cargue una copia de suministro.&quot; 
  </code></pre>
  <p>My expected output  would be to show on my html template somthing like:</p>
  <pre><code>Información Impositiva / Tributaria
       Recibo
  Preguntas Específicas
       Por favor, cargue el documento
       Cargue una copia de suministro.
  </code></pre>
  <p>Key things to consider, I´m working with Angular material. The group by filters that we have in our code have been customized and the function _,groupby() does not what one would like (I can show you what the result is, if wanted)</p>
  <p>Thanks in advance for all the help and please let me know if I can improve the question in any way.</p>