diff --git a/Marechai/Marechai.csproj b/Marechai/Marechai.csproj index 888416db..ce5a0351 100644 --- a/Marechai/Marechai.csproj +++ b/Marechai/Marechai.csproj @@ -2,7 +2,7 @@ netcoreapp3.1 - 4.0.0.1573 + 4.0.0.1574 Canary Islands Computer Museum Copyright © 2003-2020 Natalia Portillo Canary Islands Computer Museum Website diff --git a/Marechai/Services/ProcessorsService.cs b/Marechai/Services/ProcessorsService.cs index e222be89..311c5556 100644 --- a/Marechai/Services/ProcessorsService.cs +++ b/Marechai/Services/ProcessorsService.cs @@ -49,7 +49,7 @@ namespace Marechai.Services SimdSize = p.SimdSize, L1Instruction = p.L1Instruction, L1Data = p.L1Data, L2 = p.L2, L3 = p.L3, InstructionSet = p.InstructionSet.Name, Id = p.Id, InstructionSetExtensions = p.InstructionSetExtensions.Select(e => e.Extension.Extension).ToList() - }).ToListAsync(); + }).OrderBy(p => p.CompanyName).ThenBy(p => p.Name).ToListAsync(); public async Task> GetByMachineAsync(int machineId) => await _context.ProcessorsByMachine.Where(p => p.MachineId == machineId).Select(p => new ProcessorViewModel @@ -66,7 +66,7 @@ namespace Marechai.Services Id = p.Processor.Id, InstructionSetExtensions = p.Processor.InstructionSetExtensions.Select(e => e.Extension.Extension).ToList() - }).ToListAsync(); + }).OrderBy(p => p.CompanyName).ThenBy(p => p.Name).ToListAsync(); public async Task GetAsync(int id) => await _context.Processors.Where(p => p.Id == id).Select(p => new ProcessorViewModel