Page 1 of 1

Sort Lines

Posted: Thu Jul 21, 2011 9:50 pm
by Vince
Here's a quick 'one-liner' to sort the lines of a string. VBScript doesn't provide a native sort function, so JScript was used:

Code: Select all

Clipboard.Value = Clipboard.Value
  .split("\r\n")
  .sort()
  .join("\r\n");