From dfbd9bd77f4ec09ca6188815854ef8ba3286aca4 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 10 Nov 2019 20:03:05 +0000 Subject: [PATCH] Sort device stats. --- .../Areas/Admin/Controllers/DeviceStatsController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DiscImageChef.Server/Areas/Admin/Controllers/DeviceStatsController.cs b/DiscImageChef.Server/Areas/Admin/Controllers/DeviceStatsController.cs index 1480a859..456c377e 100644 --- a/DiscImageChef.Server/Areas/Admin/Controllers/DeviceStatsController.cs +++ b/DiscImageChef.Server/Areas/Admin/Controllers/DeviceStatsController.cs @@ -15,7 +15,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers public DeviceStatsController(DicServerContext context) => _context = context; // GET: Admin/DeviceStats - public async Task Index() => View(await _context.DeviceStats.ToListAsync()); + public async Task Index() => + View(await _context.DeviceStats.OrderBy(d => d.Manufacturer).ThenBy(d => d.Model).ThenBy(d => d.Bus). + ToListAsync()); // GET: Admin/DeviceStats/Edit/5 public async Task Edit(int? id)