How can I order a List ? Ask Question

How can I order a List ? Ask Question

I have this List<string>:

IList<string> ListaServizi = new List<string>();

How can I order it alphabetically and ascending?

ベストアンサー1

ListaServizi = ListaServizi.OrderBy(q => q).ToList();

おすすめ記事