Monday 15 September 2014

Order to an ordered array in c# -


I have an array that contains the order array (array_1) and I have another array in which the second number (array_2) I would like to order second orange for the first time, how should I do this?

  array_1 array_2 1 5 1 3 2 2 3 1 5 4 5 2 6 8  

(And then the sorted array should look like this->) < / P>

  array_3 3 5 2 1 2 4 8  

array_3 = array_1.zip (array_2, (a1, a2) => new {a1, a2}). Orderbay (x = & gt; x.a1). Since then (x = & gt; x.a2). Select (x = & gt; x.a2) .oir ();

No comments:

Post a Comment