Updated project repo to use correct ordering

This commit is contained in:
2025-12-13 11:01:43 +01:00
parent a2f378708f
commit 0fa955f794

View File

@@ -9,6 +9,7 @@ internal sealed class ProjectRepository(DatabaseContext context) : IProjectRepos
public async Task<IEnumerable<Project>> GetProjects(CancellationToken ct) { public async Task<IEnumerable<Project>> GetProjects(CancellationToken ct) {
return await context.Projects return await context.Projects
.Include(p => p.Languages) .Include(p => p.Languages)
.OrderByDescending(p => p.OrderIndex)
.ToArrayAsync(ct); .ToArrayAsync(ct);
} }