title: getAddressesHtmlSelect() Change - Magento
body: <p>I've been trying to edit the <strong><code>getAddressesHtmlSelect()</code></strong> function (found in <code>code/core/Mage/Checkout/Block/Onepage/abstract.php</code>) in order to enable the "new address" to display first in the dropdpown created.</p>
  
  <p>I've located the place it needs to be changed in, but I can't figure out how to do that. Can anyone help? The code in question is:</p>
  
  <pre><code>$select = $this-&gt;getLayout()-&gt;createBlock('core/html_select')
              -&gt;setName($type.'_address_id')
              -&gt;setId($type.'-address-select')
              -&gt;setClass('address-select')
              -&gt;setExtraParams('onchange="'.$type.'.newAddress(!this.value)"')
              -&gt;setValue($addressId)
              -&gt;setOptions($options);
  
          $select-&gt;addOption('', Mage::helper('checkout')-&gt;__('New Address'));
  
          return $select-&gt;getHtml();
  </code></pre>