what we need to do if we want to sort our string Array in a special form?
For example we have this:
players = new string[12] {"soccer","12","man","swim","3","woman","volleyball","12","man","baseball","13","man"};
now we want to sort Array by this form:(its just my desire order and don't have any logic)
sort = new string[4] {"swim","baseball","volleyball","soccer"}
and finally have:
out = [{swim,3,woman},{baseball,13,man},{volleyball,12,man},{soccer,12,man}]
playersarray having special items order and will not work in any arbitrary case.