A-Z ↓
Ascending sort of selected lines

Script key: Ascending sort of selected lines

Posted by @complexpoint

Install

Details

Label A-Z ↓
Voice Over Ascending sort of selected lines
Script
// simple ASCENDING alphabetic sort of 
// all fully or partially selected lines

var	rngLines = getSelectedLineRange(),
	iFrom=rngLines[0], iTo=rngLines[1],
	strSorted =
		getTextInRange(
			iFrom, iTo
		).split('\n').sort().join('\n').slice(1)+'\n';

setTextInRange(iFrom, iTo, strSorted);

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus