Emm..I have a sample example, which having Object with Arrays,
Lets Consider
obj = {
code:[1001, 1002, 1003, 1004, ..etc],
name:['John', 'Kerry', 'Stepen', 'Mery', ..etc],
priority:[20, 40, 10, 30, ..etc] //containing more than 10000 elements in an array
}
Expected Output:
obj = {
code:[1003, 1001, 1004, 1002, ..etc],
name:['Stepen', 'John', 'Mery', 'Kerry', ..etc],
priority:[10, 20, 30, 40, ..etc] //Sort on Priority basis
}
Could any one have simple & faster way of sorting for this kind of pattern?
Thanks & Regards Niks