Chapter 7 - VB.Net by Schneider
46
Sorting
•
Sorting is an algorithm for ordering an array.
•
We discuss two sorting algorithms:
•
bubble sort
•
Shell sort
•
Both use the swap algorithm:
•
temp
=
varl
•
varl
=
var2
•
var2
=
temp