From fc562a0531dde3dbd2eb5b4b7bcbe38ae443b3d9 Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Mon, 3 Sep 2018 17:49:14 -0500 Subject: [PATCH] order software by name alphabetically --- src/FilterLists.Services/Software/SoftwareService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Services/Software/SoftwareService.cs b/src/FilterLists.Services/Software/SoftwareService.cs index 548012d54..ec90abaa5 100644 --- a/src/FilterLists.Services/Software/SoftwareService.cs +++ b/src/FilterLists.Services/Software/SoftwareService.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Linq; using System.Threading.Tasks; using AutoMapper; using AutoMapper.QueryableExtensions; @@ -18,6 +19,6 @@ public SoftwareService(FilterListsDbContext dbContext, IConfigurationProvider ma } public async Task> GetAll() => - await DbContext.Software.ProjectTo(MapConfig).ToListAsync(); + await DbContext.Software.OrderBy(s => s.Name).ProjectTo(MapConfig).ToListAsync(); } } \ No newline at end of file