.NET project file analyzers community

Proj2002: Sort resource file values alphabetically

To improve readability, and reduce the number of merge conflicts, the <data> elements should be sorted based on the @name attribute.

Non-compliant

<?xml version="1.0" encoding="utf-8"?>
<root>
  <!-- ... -->
  <data name="Queen" xml:space="preserve">
    <value>Koningin</value>
  </data>
  <data name="King" xml:space="preserve">
    <value>Koning</value>
  </data>
</root>

Compliant

<?xml version="1.0" encoding="utf-8"?>
<root>
  <!-- ... -->
  <data name="King" xml:space="preserve">
    <value>Koning</value>
  </data>
  <data name="Queen" xml:space="preserve">
    <value>Koningin</value>
  </data>
</root>