基本的に、私はそのような声明を持っています
Contents
.Where(x=>x.CategoryId==5 && x.Status==1)
.GroupBy(q=>q.VersionId)
.OrderByDescending(q=>q.Key)
.Take(100)
.Select(q => new { VersionId = q.Key, MajorVersion = q.Max(x => x.MajorVersion) })
現時点では、以下のようになっています。しかし、MajorVersionフィールドを降順で並べ替えたい...
VersionId MajorVersion
387276 2
365015 1
355427 3
369865 1
それ、どうやったら出来るの?