var q = db.Customers.OrderBy(c => c.City).ThenBy(c => c.ContactName).ToList();
var q = from item in listAll
orderby item.ParentID ascending, item.SortNo descending
select item;
时间: 2024-10-17 00:03:55
var q = db.Customers.OrderBy(c => c.City).ThenBy(c => c.ContactName).ToList();
var q = from item in listAll
orderby item.ParentID ascending, item.SortNo descending
select item;