markzzz markzzz - 1 year ago 76
C# Question

How can I order a List<string>?

I have this List :

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

how can I order it due to the strings inside it? Alphabetic and ascending.

Answer Source
ListaServizi =ListaServizi.OrderBy(q => q).ToList();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download