[yoga-15] improve service list rendering

This commit is contained in:
Schneider Roland
2025-09-10 10:49:34 +02:00
parent c0ca7108c7
commit 8fc0f924b8
11 changed files with 62 additions and 12 deletions

View File

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