title: Magento - get Customer Address id of order shipping address
body: <p>I got the shipping address of an order by $order->getShippingAddress()</p>
  
  <pre><code>$order = Mage::getModel('Mage_Sales_Model_Order');
  $order-&gt;loadByIncrementId($ext_order_id);
  $address = $order-&gt;getShippingAddress();
  </code></pre>
  
  <p>and i load the DefaultBillingAddress by</p>
  
  <pre><code>$address_default_billing = Mage::getSingleton('customer/session')-&gt;getCustomer()
                                      -&gt;getDefaultBillingAddress();
  </code></pre>
  
  <p>Now i want to compare them, but there's the problem. If i do a <code>getId()</code> on both of them, they have different id's even though i chose the billing address for shipping in checkout, so they have to be the same but the id is different.. how can that appear ? Is there a way to get the customer-address-id of the current shippingaddress in checkout ? </p>
  
  <p>by example: <code>$address-&gt;getId()</code> returns 44 and <code>$address_default_billing-&gt;getId()</code> return 6</p>
  
  <p>the 6 is the right id for the customer address in the model, but the order-shipping-id is wrong..</p>
  
  <p>Thanks</p>