I’m trying to order by the average score without dividing by zero:
var articles = (from f in DB.faqs
orderby f.scoreCount / f.scoreSum descending
select new Article(f.ID, f.question, f.scoreSum, f.scoreCount))
.Take(wantedItems);
Is there any way to achieve this in LINQ?
I suppose you want zero-score articles to be in the end: