Skip to content

Commit c028f65

Browse files
committed
sort algos from best to bad
1 parent 111977a commit c028f65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/routes/+page.server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import { redirect } from '@sveltejs/kit'
21
import { prisma } from '$lib/server'
32

43
export const load = async () => {
54
return {
65
algos: await prisma.algorithm.findMany({
76
include: { author: true },
7+
orderBy: {
8+
score500: 'asc',
9+
},
810
}),
911
}
1012
}

0 commit comments

Comments
 (0)