How can I sort a data frame based on column which is again dependent on other column ?
DF :
A B C
ww a 70
ww b 90
ww c 100
qq a 100
qq b 80
qq c 90
rr a 80
rr b 70
rr c 100
I want the column C to sorted with respective to column A. That means my column A should be ascending, within the column C the values should change in ascending without out chnage in the order of column A.
Output:
A B C
qq b 80
qq c 90
qq a 100
rr b 70
rr a 80
rr c 100
ww a 70
ww b 90
ww c 100
Column A is sorted and column C is also sorted.