I have a class:
public class MyObject
{
public string Name;
public int Age;
}
I have a List of Myobject objects:
Name Age
ABC 12
BBC 14
ABC 11
How to sort this list with condition: sort Name first & sort Age later. With this list, the result after sorting:
Name Age
ABC 11
ABC 12
BBC 14