Sort people in admin controller.

This commit is contained in:
2019-06-30 22:07:16 +01:00
parent 72bcb54032
commit 56678f1b16
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<Version>3.0.99.872</Version>
<Version>3.0.99.874</Version>
<Company>Canary Islands Computer Museum</Company>
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
<Product>Canary Islands Computer Museum Website</Product>