3D Clipboard

A place to discuss 3D Clipboard

Sort Lines

Share actions you've created here.
Vince
3D Clipboard Author
Posts: 22
Joined: Wed Jul 06, 2011 12:25 am

Sort Lines

Postby Vince » Fri Jul 22, 2011 4:50 am

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");

Return to “Actions”

 

 

cron