Skip to content

Instantly share code, notes, and snippets.

%SCRIPT
var text = cursor.selectedText();
var array = text.split("\n");
array.sort();
text = "";
for (var line in array){
text += array[line];
if(line < array.length -1){
text+="\n";
}