This is my class:
class Example {
string GridValue;
}
In my code, i use a List that I want to sort. Let's say that this List has the following values:
{
"P",
"Q",
"X",
"H",
"J",
"L"
}
And this is the output I expect after calling Sort():
{
"X",
"Q",
"L",
"H",
"P",
"J"
}
How can I achieve this using the IComparer interface?
Thanks!