Suppose this is my member class
class Member { public string CategoryId { get; set; } public string MemberName { get; set; } public int Distance { g
You can use the following code:
List sourceList = new List(); IEnumerable result = (sourceList as IEnumerable) .Distinct() .OrderBy(value => value.CategoryId);