- Home /
C# copy Sorting data of An Array to Another Array
Hi Guys, I'm working on specific project, but I have a problem that I can't solve.
so, for example, Let say I have an Array :
string[] arrays = new string(){"B","C","A","D"};
then using Array.Sort()
, i can sort my arrays (so, it would be A, B, C, and D
)
now my problem is how to copy this arrays
changes to another Arrays?
IN DETAIL :
for example, I have another Array :
int[] arrayInt = new int(){1,2,3,4};
then using Array sorting data from arrays
, arrayInt
would be resorted based on arrays
changes ( so it would be 3, 1, 2, 4
)
Answer by WillNode · Mar 28, 2015 at 09:24 PM
sorry, i didn't know that it already been answered on another QA.
http://stackoverflow.com/questions/1964234/sorting-an-array-related-to-another-array
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
[C#] Sorting a List of Gameobjects Alphabetically 2 Answers
Reorder array with nulls at the end 1 Answer
Order a GameObject array based on an int property of each object? 1 Answer