title: How to specify the order of XmlAttributes, using XmlSerializer
body: <p><strong>XmlElement</strong> has an <strong>"Order"</strong> attribute which you can use to specify the precise order of your properties (in relation to each other anyway) when serializing using XmlSerializer.</p>
  
  <pre><code>public class bookingList
  {
      [XmlElement(Order = 1)]
      public string error { get; set; }
      [XmlElement(Order = 2)]
      public int counter { get; set; }
      [XmlElement(ElementName = "booking", Order = 3)]
      public List&lt;booking&gt; bookings = new List&lt;booking&gt;();
  }
  </code></pre>
  
  <p>Is there a similar thing for <strong>XmlAttribute</strong>? I just want to set the order of the attributes from something like</p>
  
  <pre><code>&lt;MyType end="bob" start="joe" /&gt;
  </code></pre>
  
  <p>to </p>
  
  <pre><code>&lt;MyType start="joe" end="bob" /&gt;
  </code></pre>
  
  <p>This is just for readability, my own benefit really.</p>