I just installed 1.0.0.51 and tested the option to sort resx file content by key. It seems that the '_' character is incorrectly sorted last when it should be listed first as follows:
<data name="Select_Input_Images" xml:space="preserve">
<value>Select Input Images</value>
</data>
<data name="SelectLanguage" xml:space="preserve">
<value>Please select a language.</value>
</data>
Comments: ** Comment from web user: tomenglert **
<data name="Select_Input_Images" xml:space="preserve">
<value>Select Input Images</value>
</data>
<data name="SelectLanguage" xml:space="preserve">
<value>Please select a language.</value>
</data>
Comments: ** Comment from web user: tomenglert **
The intention of sorting the files content by key is to keep the file layout consistent between edits, to simplify comparison between different versions - so the exact order of the keys is not important, as long as it does not change. Changing the sort order now would break this.
It was never meant to have the file content sorted by any lexical means. What would you need this behavior for? Why would you need to look at the files content?
About the escaping: I don't do this by my own, I rely on the Microsoft's XML writer to do this in the right way. I the unescaped result is the same, it does not matter.