Task: Sort a JavaScript Array Based on Another Array
Task: Sort a JavaScript Array Based on Another Array: a task in Terminal-Lego-15k (Harbor dataset). You need to write a JavaScript solution that sorts and rearranges an array of items to match the order specified by another array.
The task
You need to write a JavaScript solution that sorts and rearranges an array of items to match the order specified by another array.
Part of PrimeIntellect/Terminal-Lego-15k.