I'd use PowerShell to sort the data :)
https://stackoverflow.com/questions/32385611/sort-very-large-text-file-in-powershell (https://stackoverflow.com/questions/32385611/sort-very-large-text-file-in-powershell)
Hi Pete,
Line 5 is out of data even when I add the data line?
Never mind, you are looking for EOF, my End Of Data is EOD
Nice, Mark.
My way to add an array and place the results in alphabetical order would be as follows...Code: QB64: [Select]
Pete
.31 secs!!! Ha!@bplus That is because on smaller data sets, PowerShell will be slower. However, if you look at my updated reply, I can sort 9999 words in 0.77 seconds or 0.56 seconds if I omit duplicates. Try using my list of 9999 words and see how your algorithm does.
@bplus That is because on smaller data sets, PowerShell will be slower. However, if you look at my updated reply, I can sort 9999 words in 0.77 seconds or 0.56 seconds if I omit duplicates. Try using my list of 9999 words and see how your algorithm does.
That's why I stick with my patented Stupid Sort. It's the quickest, easiest sort code to remember and type into the IDE. I can place it in a program in under 30 seconds. It works plenty fast for most jobs where the lists to sort are 1000 items or less, but you guys probably thought I posted it just to make Steve puke. Nah, that's just a bonus!
Pete
- If you're out of your mind, see a psychiatrist. If you're just out of sorts, see CodeGuy.