N
N
Nikolai Novosad2016-01-26 03:05:53
C++ / C#
Nikolai Novosad, 2016-01-26 03:05:53

Descending sort?

Hello.
To sort character values ​​in ascending order, I use this code:

list = Uefa.getList();
dataGridView1.DataSource = null;
list = list.OrderBy(x => x.club).ToList<Uefa>();

Sorted and displayed in the dataGridView well.
How to sort in descending order of numbers?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
heartdevil, 2016-01-26
@nik_neman

Привет.
Посмотрите внимательнее в подсказках интеллисенс. Там должен быть метод .OrderByDescending.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question