Sort
Sort lines

Script key: Sort lines

Posted by agiletortoise

Install

Details

Label Sort
Voice Over Sort lines
Script
// Alpha sort selected lines.

var lnRange = getSelectedLineRange();
var ln = getTextInRange(lnRange[0],lnRange[1]);

var lines = ln.split('\n').sort();
setTextInRange(lnRange[0],lnRange[1],lines.join('\n'));

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus