Using TextFX to sort the lines separates the items from the sections. Is there any way to quickly organize an .ini file so that the result is
Alphabetizing the items isn't as important to me as getting the sections in order.
There may be an easier way I don't know of but this is how I would go about sorting the Sections.
Since sorting with TextFX (and N++ has sorting built in after v6.5.2) always looks at each line instead of within a section, merge the entire section into a single line with search/replace by inserting a special character between items (in this case the tilde character). Search for (with the Regular Expression option enabled):
and replace it with:
Note, depending on what all characters are in your file, you may want to use some other character that is not present anywhere else in your file.
After that is complete you can sort your file. The next thing to do is remove the special characters with newlines
Find the special character you inserted (turn on the Extended option):
And replace it with
And this should at least have your sections sorted.