This procedures sorts items in the range from 1 to N into ascending
order making calls to Lt to do required comparisons, and Move to move
items around. Note that, as described above, both Move and Lt use a
single temporary location with index value zero. This sort is not
stable, i.e. the order of equal elements in the input is not preserved.
|