I have a dataframe with two columns as sted below:
Col 1 Col2
A RED
B GREEN
C AMBER
D RED
E GREEN
I want the output dataframe as:
Col1 Col2
A RED
D RED
C AMBER
B GREEN
E GREEN
I want the column to be sorted in the order of priorty red,amber and green irrespective of column 1 value.
Thanks for any help in advance