In my opinion, creating merging the arrays and then sorting the merged array isn't a bad idea because it's simple. But that depends on what you seek - performance or simplicity. Everything is possible to code but depends on your experience and the amount of time to spend doing it.
By the way, I doubt sorting and merging at the same time would be a lot faster than merging and then sorting.
That's just my opinion - accept it or not.
edit: Separated merging could save you some lines of code when implementing other sorting algorithms.
Last edited by venomxxl; Nov 6th, 2009 at 1:47 pm.
Reputation Points: 34
Solved Threads: 7
Junior Poster in Training
Offline 72 posts
since Jan 2009