ok so there are 300 numbers in a text file, they are all out of order and im just trying to print all of them in order from smallest to biggest

i really need some help, please dont just direct me to another topic about this unless its exactly like the help i need

this is teh code i have so far, but it wont work

thank you so much, hopefully someone knows whats wrong

VB Code:
  1. Dim nom(1 To 300)
  2. Private Sub Form_Load()
  3. Dim count As Single
  4. Open "NUMBERS.TXT" For Input As #1
  5. Do While EOF(1) = False
  6.     count = count + 1
  7.     Input #1, nom(count)
  8. Loop
  9. Close #1
  10. End Sub
  11.  
  12. Private Sub cmdCalculate_click()
  13. Call Sort
  14. Call Show
  15. End Sub
  16.  
  17. Private Sub Showz()
  18. Dim i As Integer
  19.  
  20. picOutput.Cls
  21. For i = 1 To 300
  22.     picOutput.Print nom(count)
  23. Next i
  24. End Sub
  25. Private Sub Sort()
  26. Dim passNum As Single, count2 As Single
  27. 'Bubble sort table in descending order by population
  28. For passNum = 1 To 299
  29.     For count2 = 1 To 300 - passNum
  30.             If nom(count2) > nom(count2 + 1) Then
  31.             temp = nom(count2)
  32.             nom(count2) = nom(count2 + 1)
  33.             nom(count2 + 1) = temp
  34.             End If
  35.             Next count2
  36.     Next passNum
  37. End Sub