using System;
using System.Collections.Generic;
public class MyClass
{
public static void Main()
{
List<string> names = new List<string>() { "ccc", "xxx", "aaa","bbbb" };
names.Sort();
var result = String.Join(",", names.ToArray());
Console.Write(result);
Console.ReadKey();
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKCnB1YmxpYyBjbGFzcyBNeUNsYXNzCnsgCglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkJTGlzdDxzdHJpbmc+IG5hbWVzID0gbmV3IExpc3Q8c3RyaW5nPigpIHsgImNjYyIsICJ4eHgiLCAiYWFhIiwiYmJiYiIgfTsKCQluYW1lcy5Tb3J0KCk7CgkJdmFyIHJlc3VsdCA9IFN0cmluZy5Kb2luKCIsIiwgbmFtZXMuVG9BcnJheSgpKTsKCSAgIENvbnNvbGUuV3JpdGUocmVzdWx0KTsKCSAgIENvbnNvbGUuUmVhZEtleSgpOwoJfSAKfQ==