v.24.6Performance Improvement

Add Row Reshuffling During Insert for Size Optimization in ClickHouse

Add the ability to reshuffle rows during insert to optimize for size without violating the order set by PRIMARY KEY. It's controlled by the setting optimize_row_order (off by default). #63578 (Igor Markelov).