mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Sort people in admin controller.
This commit is contained in:
@@ -24,7 +24,7 @@ namespace cicm_web.Areas.Admin.Controllers
|
||||
public async Task<IActionResult> Index()
|
||||
{
|
||||
IIncludableQueryable<Person, Iso31661Numeric> cicmContext = _context.People.Include(p => p.CountryOfBirth);
|
||||
return View(await cicmContext.ToListAsync());
|
||||
return View(await cicmContext.OrderBy(p => p.FullName).ToListAsync());
|
||||
}
|
||||
|
||||
// GET: People/Details/5
|
||||
|
||||
Reference in New Issue
Block a user