diff --git a/src/screens/ActivePickListScreen.tsx b/src/screens/ActivePickListScreen.tsx index 6233ade..9028d16 100644 --- a/src/screens/ActivePickListScreen.tsx +++ b/src/screens/ActivePickListScreen.tsx @@ -82,6 +82,9 @@ export const ActivePickListScreen = () => { ); const sortedItems = useMemo(() => { + const normalizeProductName = (product?: Product | null) => + product?.name ? product.name.trim().toLowerCase() : ''; + return [...itemsVisibleByStatus].sort((a, b) => { const productA = productMap.get(a.product_id); const productB = productMap.get(b.product_id);