Sorting a DataFrame based on a multi-column function

From what I understand, sort considers columns as independent when sorting and does not allow the type of combination you want.
Instead, you could just use indexing to a similar effect:

df[sortperm(max.(df.b, df.c); rev=true), names(df)]
2 Likes