Sorting algorithms/Bubble sort: Difference between revisions

m
→‎version 3, random integers, horizontal list, with interim plots: added comments to the REXX section header concerning the annotation to the plot progress (snapshots).
m (→‎{{header|REXX}}: aligned comments, optimized bSort subroutine.)
m (→‎version 3, random integers, horizontal list, with interim plots: added comments to the REXX section header concerning the annotation to the plot progress (snapshots).)
Line 3,998:
 
Note that the command to clear the terminal screen is hard-coded as:   '''CLS'''
 
Also note that only four snapshots of the sort-in-progress is shown here,   the REXX program will show a snapshot of ''every''
<br>sorting pass; &nbsp; the &nbsp; &nbsp; &nbsp; ''at &nbsp; (about) &nbsp; nnn% sorted'' &nbsp; &nbsp; &nbsp; was added after-the-fact.
<lang rexx>/*REXX program sorts an array (of any kind of numbers) using the bubble─sort algorithm.*/
parse arg N seed . /*obtain optional size of array from CL*/