fix: users projects shifting around while in queue (#6452)

fix: users projects shifting around while in queue due to download count changes
This commit is contained in:
ThatGravyBoat
2026-06-20 15:55:03 +00:00
committed by GitHub
parent 49dd844fe1
commit 86a224419c
3 changed files with 54 additions and 2 deletions
@@ -211,7 +211,7 @@
: (projects ?? [])
)
.slice()
.sort((a, b) => b.downloads - a.downloads)"
.sort(projectUserSorting)"
:key="project.id"
>
<ProjectCard
@@ -327,6 +327,7 @@ import {
provideOrganizationContext,
} from '~/providers/organization-context.ts'
import { isPermission } from '~/utils/permissions.ts'
import { projectUserSorting } from '~/utils/projects.ts'
type ProjectV3 = Labrinth.Projects.v3.Project & {
client_side: 'required' | 'optional' | 'unsupported'