#264 bug fix in computing the order of reciations based on computed scores

This commit is contained in:
Hamid Reza Mohammadi 2021-12-22 20:30:21 +03:30
parent f4ff5835dd
commit c431a04097

View File

@ -1882,7 +1882,7 @@ namespace RMuseum.Services.Implementationa
var recitations =
await _context.Recitations
.Where(r => r.ReviewStatus == AudioReviewStatus.Approved && r.GanjoorPostId == poemId)
.OrderByDescending(r => r.Id) //this causes the oldest recirations to become the first one
.OrderBy(r => r.Id) //this causes the oldest recirations to become the first one
.ToListAsync();
List<RecitationOrderingViewModel> scores = new List<RecitationOrderingViewModel>();