I have an object and it includes some arrays. I want to sort one array and other arrays should mirror the indexes of one array and they will be sorted according to this array. I need a javascript function. Thanks for your advance.
My object
var object= {
a : [],
b: [],
c: []
}
So when you sort an element a,b,c other items should mirror the indexes of one root array.
Similar functionality at python ==> https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.sort_values.html