fix: use semver sort for ccos updates

This commit is contained in:
2025-07-29 14:55:02 +02:00
parent b27182dc35
commit f2a18cafe8

View File

@@ -1,5 +1,6 @@
import type { PageLoad } from "./$types";
import type { DirectoryListing } from "$lib/meta/types/listing";
import { compare } from "semver";
export const load = (async ({ fetch, params }) => {
const result = await fetch(
@@ -9,7 +10,7 @@ export const load = (async ({ fetch, params }) => {
return {
versions: (data as DirectoryListing[]).sort((a, b) =>
b.name.localeCompare(a.name),
compare(b.name, a.name),
),
device: params.device,
};