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