lundi 31 août 2015

Sorting a list according to date [duplicate]

This question already has an answer here:

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