Updated project repo to use correct ordering
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user