title: Reorder Woocommerce checkout fields
body: <p>I am trying to reorder the billing fields on the checkout page but everything I tried so far is not working.</p>
  
  <p>Here is the snippet I am currently trying:</p>
  
  <pre><code>add_filter("woocommerce_checkout_fields", "order_fields");
  
  function order_fields($fields) {
    $order = array(
      "billing_first_name", 
      "billing_last_name", 
      "billing_country", 
      "billing_state", 
      "billing_address_1", 
      "billing_address_2", 
      "billing_email", 
      "billing_phone"
    );
  
    foreach($order as $field) {
      $ordered_fields[$field] = $fields["billing"][$field];
    }
  
    $fields["billing"] = $ordered_fields;
    return $fields;
  }
  </code></pre>
  
  <p>Could something be overriding this snippet, because it used to work for me.</p>