Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

Sort lines alphabetically

Description
This macro will sort the copied lines alphabetically by the first letter of each line.
Language
C#.net
Minimum Version
Created By
wooster11
Contributors
-
Date Created
Jan 14, 2022
Date Last Modified
Jan 14, 2022

Macro Code

using System;
using System.Collections.Generic;

public static class ClipboardFusionHelper
{
	public static string ProcessText(string text)
	{
		string[] lines = text.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
		List<string> lineList = new List<string>(lines);
		lineList.Sort();
		return string.Join(Environment.NewLine, lineList.ToArray());
	}
}