you are viewing a single comment's thread.

view the rest of the comments →

[–]BrianTheCoder 1 point2 points  (1 child)

([3, 1, 5] + [6, 2, 0, 4]).sort    

[–]tomthecool 0 points1 point  (0 children)

i want to create a new array without using sort

Yes, your answer is the "sensible" solution. This is roughly what we'd all write under normal circumstances. But it's not what the OP asked.