document.selection.text = ((document.selection.text.split(/[\n\r]+/)).sort()).join('\n');