title: How to iterate an array of objects
body: <p>I need to go through an array of objects and return an array that contains the &quot;taxNumber&quot; ordered by the names.
  How could I do it?</p>
  <pre class="lang-js prettyprint-override"><code>const paddockManagers = 
    [ { id: 1, taxNumber: '132254524', name: 'JUAN TAPIA BURGOS'         } 
    , { id: 2, taxNumber: '143618668', name: 'EFRAIN SOTO VERA'          } 
    , { id: 3, taxNumber: '78903228',  name: 'CARLOS PEREZ GONZALEZ'     } 
    , { id: 4, taxNumber: '176812737', name: 'ANDRES VIÑALES CIENFUEGOS' } 
    , { id: 5, taxNumber: '216352696', name: 'OSCAR PEREZ ZUÑIGA'        } 
    , { id: 6, taxNumber: '78684747',  name: 'JOAQUIN ANDRADE SANDOVAL'  } 
    ] 
  
  function listPaddockManagersByName() {
    return paddockManagers.map((paddockManager) =&gt;
      addockManager.name + paddockManager.taxNumber)
  };
  </code></pre>