pub fn rewrite_sort_cols_by_aggs(
    exprs: impl IntoIterator<Item = impl Into<Expr>>,
    plan: &LogicalPlan
) -> Result<Vec<Expr>>
Expand description

Rewrite sort on aggregate expressions to sort on the column of aggregate output For example, max(x) is written to col("MAX(x)")