CodePudding user response:
CodePudding user response:
To give the building Lord holds a field,,,CodePudding user response:
Your class, can try orderby listCodePudding user response:
Var newList=ObjStu. OrderBy (d=& gt; D.N ame). ToList ();
The foreach (var item in newList)
{
//to do
}
CodePudding user response:
The introduction of theusing System. Linq;
https://www.tutorialsteacher.com/linq/linq-sorting-operators-orderby-orderbydescending
CodePudding user response:
I feel that your StuNameAsc ICompare interface?