document.selection.text = ((document.selection.text.split("\n")).sort()).join('\n');