the sorting works, the output functions I removed, I will not output doubles, and yes my sorting does work without cluttering everything. I removed the double thread creations in the if statement as well. I only tried that because: when I loop the program again, absolutely NO threads are created. I do not know why, I have been working on this for days and I still can't find what is wrong.