Sorry there Jens and fernando,

I originally did not have the file read into an Array, so I asked how to sort a populated file.

This code in the thread should be able to do both, depending on how or what you want to do.

I worked with Bryce on this. I thought, well if we can do this other stuff with an Array, then why not just fill the array in memory, then write the file (cut out one step). Bryce came up with the code to put the Registry read into an array.
Then you run it against the CombSort by Sean.

During all my testing it has been the fastest method so far.

I'm kind of with VIG on this one though. I have close to 3,000 machines to sort/store this data and then put in a reportable to management form.

OK I have the Software inventory - Now how do I report on it?