Do not forget what sorting means when there are multiple columns to sort by. Is this exactly what you want to achieve? df.sort(["group","value","value2"])
df.sort(["group","value","value2"])