diff --git a/libs/loopsidesheet/src/lib/utils-sidesheet/useGetLoopContent.ts b/libs/loopsidesheet/src/lib/utils-sidesheet/useGetLoopContent.ts index 5116c9a8..b246c39c 100644 --- a/libs/loopsidesheet/src/lib/utils-sidesheet/useGetLoopContent.ts +++ b/libs/loopsidesheet/src/lib/utils-sidesheet/useGetLoopContent.ts @@ -33,9 +33,7 @@ export const useGetLoopContent = (loopNo: string) => { throw new Error(); } const loopContent = await response.json() as LoopContent[] - return loopContent.sort((a, b) => { - return compareMcStatus(a.mechanicalCompletionStatus as McStatus | undefined, b.mechanicalCompletionStatus as McStatus | undefined) - }) + return loopContent.sort((a, b) => compareMcStatus(a.clStatus as McStatus | undefined, b.clStatus as McStatus | undefined)) }, });