C# Linq that includes sorting and grouping
Clash Royale CLAN TAG #URR8PPP C# Linq that includes sorting and grouping This is my code: public class Photos { public long PhotoLabel { get; set; } public int UserID { get; set; } } List<Photos> photolist = new List<Photos>(); var result1 = photolist.OrderByDescending(p => p.PhotoLabel).ThenBy(r => r.UserID).ToList(); If I display the contents now, this is what I get (First sorted in descending order of PhotoLabel and then sorted by UserID: |------|---------------------|---------------------| | Row | UserID | PhotoLabel | |----------------------------|---------------------| | 1 | 92 | 20180729181046 | |----------------------------|---------------------| | 2 | 92 | 20180729181041 | |----------------------------|---------------------| | 3 | 92 | 20180729181037 | |----------------------------|---------------------| | 4 | 88 | 20180729174...