[yoga-15] improve service list rendering

This commit is contained in:
Schneider Roland
2025-09-10 22:38:04 +02:00
parent 8fc0f924b8
commit 1e553380e2
8 changed files with 59 additions and 33 deletions

View File

@@ -3,5 +3,5 @@ import {YogaSingleService_Plain} from "@/types/generated-strapi-interfaces/api/y
export function sortServicesByPriority(a: YogaSingleService_Plain, b: YogaSingleService_Plain) {
const priorityA = a.priority ?? 0;
const priorityB = b.priority ?? 0;
return priorityA - priorityB;
return priorityB - priorityA;
}