feat: schizo sorting
This commit is contained in:
		@@ -98,7 +98,14 @@ export const Board: FC<Props> = ({
 | 
				
			|||||||
            if (!aDate || !bDate) return 0;
 | 
					            if (!aDate || !bDate) return 0;
 | 
				
			||||||
            return aDate.getTime() - bDate.getTime();
 | 
					            return aDate.getTime() - bDate.getTime();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        return [...firstRankData, ...secondRankData];
 | 
					        return [...firstRankData, ...secondRankData].map((obj, index) => {
 | 
				
			||||||
 | 
					            if (isGroup(obj)) {
 | 
				
			||||||
 | 
					                obj.deals[0].rank = index;
 | 
				
			||||||
 | 
					                return obj;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            obj.rank = index;
 | 
				
			||||||
 | 
					            return obj;
 | 
				
			||||||
 | 
					        }) as (GroupWithDeals | DealSummary)[];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const renderDeal = (deal: DealSummary) => {
 | 
					    const renderDeal = (deal: DealSummary) => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user