Hi coders, I would like to sort the following 7 symbols with representative numbers as follows :-
The expected output would be as follows :-
I think you need to use array to do it, could you please help to write a set of codes / a script how to get the expected output ? Thanks
Inserted Code
string Sym="EURJPY,AUDCHF,XAGUSD,CADJPY,GBPAUD,NZDUSD,XAUUSD"; // 7 Symbols string SymNum="5,1,2,2,4,3,3"; // 7 Representative Numbers
The expected output would be as follows :-
Inserted Code
string Sym="AUDCHF,CADJPY,EURJPY,GBPAUD,NZDUSD,XAGUSD,XAUUSD"; // 7 Sorted Symbols string SymNum="1,2,5,4,3,2,3"; // 7 Sorted Representative Numbers According to Sorted Sym
I think you need to use array to do it, could you please help to write a set of codes / a script how to get the expected output ? Thanks