September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,4 +1,4 @@
|
|||
Dim sortable() As Integer ' assume the array is populated
|
||||
Dim sortable() As Integer = Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
|
||||
sortable.Shuffle() ' sortable is now randomized
|
||||
Dim swapped As Boolean
|
||||
Do
|
||||
|
|
@ -6,10 +6,10 @@
|
|||
bound = sortable.Ubound
|
||||
|
||||
While index < bound
|
||||
If Sortable(index) > Sortable(index + 1) Then
|
||||
Dim s As Integer = Sortable(index)
|
||||
Sortable.Remove(index)
|
||||
Sortable.Insert(index + 1, s)
|
||||
If sortable(index) > sortable(index + 1) Then
|
||||
Dim s As Integer = sortable(index)
|
||||
sortable.Remove(index)
|
||||
sortable.Insert(index + 1, s)
|
||||
swapped = True
|
||||
End If
|
||||
index = index + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue