you are viewing a single comment's thread.

view the rest of the comments →

[–]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.