mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Sort memories by machine in admin page.
This commit is contained in:
@@ -55,7 +55,8 @@ namespace cicm_web.Areas.Admin.Controllers
|
||||
{
|
||||
IIncludableQueryable<MemoryByMachine, Machine> cicmContext =
|
||||
_context.MemoryByMachine.Include(m => m.Machine);
|
||||
return View(await cicmContext.ToListAsync());
|
||||
return View(await cicmContext.OrderBy(m => m.Machine.Name).ThenBy(m => m.Usage).ThenBy(m => m.Size)
|
||||
.ThenBy(m => m.Type).ToListAsync());
|
||||
}
|
||||
|
||||
// GET: Admin/MemoryByMachines/Details/5
|
||||
|
||||
Reference in New Issue
Block a user