Sort uploaded results.

This commit is contained in:
2019-11-23 18:01:07 +00:00
parent 34242f8ea4
commit 91cf4c18e3
2 changed files with 9 additions and 16 deletions

View File

@@ -16,7 +16,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
public ReportsController(DicServerContext context) => _context = context;
// GET: Admin/Reports
public async Task<IActionResult> Index() => View(await _context.Reports.ToListAsync());
public async Task<IActionResult> Index() =>
View(await _context.Reports.OrderBy(r => r.Manufacturer).ThenBy(r => r.Model).ThenBy(r => r.Revision).
ThenBy(r => r.CompactFlash).ThenBy(r => r.Type).ToListAsync());
// GET: Admin/Reports/Details/5
public async Task<IActionResult> Details(int? id)