When checking whether the sorted file is the same or needs to be rewritten, compare the bytes with the original instead of comparing strings - this is more precise (takes into account encoding, BOM, etc).
When checking whether the sorted file is the same or needs to be rewritten, compare the bytes with the original instead of comparing strings - this is more precise (takes into account encoding, BOM, etc).

KirillOsenkov/CodeCleanupTools