It makes it difficult to track the changes, e.g. in a version control system (git).
Also, I like to have my own ordering, where I group strings by purpose.
Another problem with the sorting is that it does not preserve comments at the end of a line. Example:
"Tr.trash_verb" = "löschen"; /* as a verb, i.e. to trash */
If this line gets reordered, the comment ends up with a different line.
Since the keys do not change while editing in this tool, I suggest to preserve the order of the keys when reading the file, and restoring them in the same order when writing back. Or by using a OrderedDictionary (though that's not a standard class in Cocoa, I'm afraid, unless Swift now has one?).
It makes it difficult to track the changes, e.g. in a version control system (git).
Also, I like to have my own ordering, where I group strings by purpose.
Another problem with the sorting is that it does not preserve comments at the end of a line. Example:
If this line gets reordered, the comment ends up with a different line.
Since the keys do not change while editing in this tool, I suggest to preserve the order of the keys when reading the file, and restoring them in the same order when writing back. Or by using a OrderedDictionary (though that's not a standard class in Cocoa, I'm afraid, unless Swift now has one?).