Private Sub Command2_Click()
p = ""
For i = 1 To 9
For j = 1 To 10 - i
If a(j) < a(j + 1) Then
t = a(j): a(j) = a(j + 1): a(j + 1) = t
End If
Next j
Next j
For i = 1 To 10
p = p & Str(a(i)) & ","
Next i
Label2.Caption = LTrim(Left(p, Len(p) - 1))
p = ""
For i = 1 To 9
For j = 1 To 10 - i
If a(j) < a(j + 1) Then
t = a(j): a(j) = a(j + 1): a(j + 1) = t
End If
Next j
Next j
For i = 1 To 10
p = p & Str(a(i)) & ","
Next i
Label2.Caption = LTrim(Left(p, Len(p) - 1))
End Sub