title: Python script - sort XML elements with the same tag, but with no attributes
body: <p>is it possible via xml.etree.ElementTree to sort XML attributes with the same tag (but with no attributes provided)?
  For example:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;tns:service xmlns:tns=&quot;somenamespace&quot;&gt;
      &lt;tns:info&gt;
          &lt;tns:date&gt;1635799858045&lt;/tns:date&gt;
          &lt;tns:type&gt;update&lt;/tns:type&gt;
      &lt;/tns:info&gt;
      &lt;tns:info&gt;
          &lt;tns:date&gt;1633489659638&lt;/tns:date&gt;
          &lt;tns:type&gt;add&lt;/tns:type&gt;
      &lt;/tns:info&gt;
      &lt;tns:info&gt;
          &lt;tns:date&gt;1637231504666&lt;/tns:date&gt;
          &lt;tns:type&gt;approved&lt;/tns:type&gt;
      &lt;/tns:info&gt;
  &lt;/tns:service&gt;
  </code></pre>
  <p>Is there a way I can sort <code>&lt;tns:info&gt;</code> tags according to their <code>&lt;tns:date&gt;</code>?</p>
  <p>Thank you</p>