using System.Collections.Generic;
static event EventHandler MyEvent;
public static void Main()
List<Status> statuses = new List<Status>();
Status st = new Status();
Status st2 = new Status();
Status st3 = new Status();
Status st4 = new Status();
Status st5 = new Status();
Status st6 = new Status();
st.StatusDescr = "ATEST DESC";
st2.StatusDescr = "BTEST DESC";
st3.StatusDescr = "CTEST DESC";
st4.StatusDescr = "DTEST DESC";
st5.StatusDescr = "ETEST DESC";
var result = statuses.Where(x => x.StatusDescr != "id").OrderByDescending(a => a.StatusDescr);
foreach(var stat in result)
public int StatusID { get; set; }
public string StatusDescr { get; set; }
public string StatusType { get; set; }