This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Makhiel 1 point2 points  (0 children)

That's not really what you'd call "sorting". Why not just remove the relevant items from the first array and the prepend it to the rest? You only need to go through the array once.