string str = "ccccccc\r\naaaaaaa\r\nbbbbb\r\n";
string[] arr = str.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
Array.Sort(arr);
先Split(‘\r’),再Split('\n'),试试
string s = "ccccccc\r\naaaaaaa\r\nbbbbb\r\ndsadasdas";
string[] ss= s.Split('\n');
for (int i = 0; i < ss.Length; i++)
{
ss[i] = ss[i].Trim('\r');
}