JS how to sort() one array based on another array’s sortation

后端 未结 0 1758
无人及你
无人及你 2020-11-30 01:02

Heres what I want to do: Sort A, then whatever new index the numbers get when sorted, the other array (b)’s values’ index rearrange like A’s.

var arrB = [\'h\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题