Changed newlines in sorted output to CRs to prevent excess whitespace on OSX/Unix