diff --git a/DiscImageChef.Server/Areas/Admin/Controllers/BlockDescriptorsController.cs b/DiscImageChef.Server/Areas/Admin/Controllers/BlockDescriptorsController.cs index 79f33d21..a0f528c1 100644 --- a/DiscImageChef.Server/Areas/Admin/Controllers/BlockDescriptorsController.cs +++ b/DiscImageChef.Server/Areas/Admin/Controllers/BlockDescriptorsController.cs @@ -1,6 +1,5 @@ using System.Linq; using System.Threading.Tasks; -using DiscImageChef.CommonTypes.Metadata; using DiscImageChef.Server.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; @@ -16,6 +15,8 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers public BlockDescriptorsController(DicServerContext context) => _context = context; // GET: Admin/BlockDescriptors - public async Task Index() => View(await _context.BlockDescriptor.ToListAsync()); + public async Task Index() => + View(await _context.BlockDescriptor.OrderBy(b => b.BlockLength).ThenBy(b => b.Blocks). + ThenBy(b => b.Density).ToListAsync()); } } \ No newline at end of file