For example:
[2, 4, 6, 3, 9] - & gt; [2, 3, 4, 6, 9]
[5, [6], [2], 20] - & gt; [[2], 5, [6], 20]
Need to use the sort () method to traverse? But for how to implement has not thought of high-performance, want to consult everybody here, thank you very much!
CodePudding user response:
Demand for example is given with doubt,For example [2, 6, 4, 5], looking forward to the sort of result is what?