v.20.8Bug Fix

Fixed Behavior of optimize_read_in_order and optimize_aggregation_in_order with max_threads > 0 and ORDER BY Expression

Fixed inconsistent behaviour of optimize_read_in_order/optimize_aggregation_in_order with max_threads > 0 and expression in ORDER BY. #16637 (Azat Khuzhin).