Thank you very much for spending time helping this.. I have a data set named "MyData" as below: I want to sort the whole data set(A to E) with a specific order with column A,B and C. The order can be defined by me. First sorting by A, with the order: "yellow", "green", then "red" After A is sorting, then sorting by column B, with the order "X", "Z" then "Y" After A and B is sorting, then sorting by C, the order should be the largest number to the smallest number.
A B C D E
1 red X 0.8 aaaa 111
2 yellow Y 0.2 dddd 222
3 green X 0.3 cccc 111
4 yellow Z 0.6 dddd 333
5 green Y 0.1 aaaa 123
6 yellow X 0.5 cccc 324
7 yellow X 0.4 zzzz 222
8 yellow X 0.8 bbbb 126
Below is my desired output:
A B C D E
8 yellow X 0.8 bbbb 126
6 yellow X 0.5 cccc 324
7 yellow X 0.4 zzzz 222
4 yellow Z 0.6 dddd 333
2 yellow Y 0.2 dddd 222
3 green X 0.3 cccc 111
5 green Y 0.1 aaaa 123
1 red X 0.8 aaaa 111
My actual dataset contains around 100 rows. Thank you very much!!!:)