mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Sort block descriptors.
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.CommonTypes.Metadata;
|
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
@@ -16,6 +15,8 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|||||||
public BlockDescriptorsController(DicServerContext context) => _context = context;
|
public BlockDescriptorsController(DicServerContext context) => _context = context;
|
||||||
|
|
||||||
// GET: Admin/BlockDescriptors
|
// GET: Admin/BlockDescriptors
|
||||||
public async Task<IActionResult> Index() => View(await _context.BlockDescriptor.ToListAsync());
|
public async Task<IActionResult> Index() =>
|
||||||
|
View(await _context.BlockDescriptor.OrderBy(b => b.BlockLength).ThenBy(b => b.Blocks).
|
||||||
|
ThenBy(b => b.Density).ToListAsync());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user