116
rated 0 times
[
121]
[
5]
/ answers: 1 / hits: 19819
/ 9 Years ago, wed, february 25, 2015, 12:00:00
I have an array with keys like so:
['asdf12','39342aa','12399','129asg',...]
and a collection which has these keys in each object like so:
[{guid: '39342aa', name: 'John'},{guid: '129asg', name: 'Mary'}, ... ]
Is there a fast way to sort the collection based on the order of keys in the first array?
More From » arrays