title: Organise array push order
body: <p>I've got an array. I push items multiple times into this array using a function. Below is an simplified version of the code.</p>
  
  <pre><code>var arr = [];
  
  function pushItems(i){
    //do something with i
    var abc = "string"
    arr.push(abc);
  
    //do something with i
    var xyz = "string"
    arr.push(xyz);
  }
  </code></pre>
  
  <p>Sometimes <code>abc</code> value is pushed before <code>xyz</code>. Sometimes <code>xyz</code> gets pushed before <code>abc</code> value. My question is how do I always have the <code>abc</code> value ahead of 'xyz' value?</p>
  
  <p>So basically I need the array values to be <code>[abc1, xyz1, abc2, xyz2, abc3, xyz3, ...]</code> so on. How do I order the push accordingly?</p>