Search found 2 matches
- Fri Nov 21, 2008 7:21 pm
- Forum: Technical / Scripting
- Topic: Problem wth Bubble Sort Routine
- Replies: 1
- Views: 2654
Problem with Bubble Sort Routine
OK - I think I have discovered part of the problem with this example of the Bubble Sort routine as currently written. The two Repeat-Until loops are using the same index (i). So when the second (Bubble_Sort) loop increments i, the code returns to the first loop (writing the output file). I can get t...
- Fri Nov 21, 2008 10:29 am
- Forum: Technical / Scripting
- Topic: Problem wth Bubble Sort Routine
- Replies: 1
- Views: 2654
Problem wth Bubble Sort Routine
I would like to sort the contents of a Macroscript array and thought I would use the Bubble Sort routine provided elsewhere in this forum(see below): Let>inputfile=d:\names.txt Let>outputfile=d:\names_sorted.txt ReadFile>inputfile,NamesList Separate>NamesList,%CRLF%,Names Let>Max=Names_Count GoSub>B...