Sort processors in admin page.

This commit is contained in:
2019-05-19 00:59:40 +01:00
parent 86470c6bca
commit 0e6fc2e7f2
8 changed files with 244 additions and 329 deletions

View File

@@ -55,7 +55,7 @@ namespace cicm_web.Areas.Admin.Controllers
{
IIncludableQueryable<Processor, InstructionSet> cicmContext =
_context.Processors.Include(p => p.Company).Include(p => p.InstructionSet);
return View(await cicmContext.ToListAsync());
return View(await cicmContext.OrderBy(p => p.Company.Name).ThenBy(p => p.Name).ToListAsync());
}
// GET: Admin/Processors/Details/5