This commit is contained in:
Hamid Reza Mohammadi 2024-05-10 09:42:13 +03:30
parent e5b665cbd6
commit 5e5b48a746

View File

@ -634,7 +634,7 @@ namespace RMuseum.Services.Implementation
{
return new RServiceResult<GanjoorPaperSource[]>
(
await _context.GanjoorPaperSources.AsNoTracking().Where(p => p.GanjoorCatId == categoryId).OrderBy(c => c.OrderIndicator).ThenBy(c => c.Id).ToArrayAsync()
await _context.GanjoorPaperSources.AsNoTracking().Where(p => p.GanjoorCatId == categoryId).OrderByDescending(c => c.IsTextOriginalSource).OrderBy(c => c.OrderIndicator).ThenBy(c => c.Id).ToArrayAsync()
);
}
catch (Exception exp)