Sorting line endings messed up by Windows