title: Define the order of attributes in dom
body: <p>I currently working on DOM and i wonder how can change the place of tags data 
  for example </p>
  
  <p>I have created element:</p>
  
  <pre><code>propElement = document.createElement("prop");
  </code></pre>
  
  <p>The prop is opening the tag.</p>
  
  <p>Then </p>
  
  <pre><code>propElement.setAttribute("name", "name1");
  
  propElement.setAttribute("name2", "name2");
  </code></pre>
  
  <p>The problem is that despite i put the set method name2 after name1 I will see in the tag name2 before name1.</p>
  
  <p></p>
  
  <p>How can I change the order ?</p>
  
  <p><em>(Note; I'm using a Java DOM API, not JavaScript.)</em></p>