I have 2 arrays. Names in first array and indexes in second array. I ordered with C# (Array.sort() property).
Example : my array name is OrderedNames.
var names = OrderedName.SelectMany(x => x.Names) // names array
var indexes = OrderedName.SelectMany(x => x.Indexes) // indexes array
Array.sort(indexes,names) // ordered names with indexes
I did this C# with LINQ.
I want to do the same thing with JavaScript.
So my Javascript code as the following(for example):
var names = Enumerable.From('$.OrderedNames').SelectMany('$.Names').ToArray();
var indexes = Enumerable.From('$.OrderedNames').SelectMany('$.Indexes').ToArray();
I can choose names and indexes. I want to merge two arrays and sorted. I did this with C# Array.sort() but I didn't with Javascript.
Do you have any idea please?
JScode isn't going to compile. You can't use.NETfunctionality (LINQ) directly fromJSlike that.