Vote count:
0
I have a rather large list consisting of several thousand doubles and I wish to sort it in descending order.
xlist is my list of doubles.
I tried
xlist.Sort();
xlist.Reverse();
and
xlist.OrderByDescending(d => d);
then I proceed to use for loop to print out the contents of the list.
neither of them work. What should I do?
asked 35 secs ago
Aucun commentaire:
Enregistrer un commentaire