using System;
using System.IO;
using System.Collections.Generic;
public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
List<string> oItems = new List<String>();
StringReader sr = new StringReader(text);
string line;
line = sr.ReadLine();
while (line != null)
{
string[] parts = line.Split(',');
foreach (string strPart in parts)
{
string strNewPart = strPart.Trim();
if (!oItems.Contains(strNewPart))
{
oItems.Add(strNewPart);
}
}
line = sr.ReadLine();
}
// Removed the sorting step: oItems.Sort();
return String.Join("\n", oItems.ToArray());
}
}