How to sort a . resx (resource file) in .NET How to sort a . resx (resource file) in .NET asp.net asp.net

How to sort a . resx (resource file) in .NET


SortRESX is a simple executable created by Tom Clement on CodeProject.

It sorts *.resx file alphabetically. I described it on my blog.


You could write a quick script to do that using LINQ to XML:

var root = XElement.Load(...);var sortedRoot = new XElement(root.Name, root.Attributes,        root.Elements().OrderBy(e => e.Attribute("name").Value));


I wrote a very simple VS extension that sorts resx files.Right click any .resx file(s), and click "Sort Resx".