This question already has an answer here:
- List<> OrderBy Alphabetical Order 9 answers
I have a struct and a list as follow, I just wanted to sort the Inputpoints according to date. I have used the following commands but I can not see any sorting.
public struct Points
{
public Date Date;
public double Quantity;
}
_test = new List<Points>(InputPoints);
_test.OrderBy(t => t.Date);
Thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire