[yoga-15] improve service list rendering
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user