Fix sorting when line separator not match codeStyle

This will fix sort when current file line separator is not one that set in codeStyle. 
Without this fix contents of file will not be sorted if file line separators not match codeStyle separators.