title: how to Rank a list of students and display their names, scores and position in vb.net
body: <p>i have a project in vb.net to create reports of students. my main problem is how to rank a list of students' scores and display the various students' name with their scores and position.
   how can i rank the students' scores and display their names,scores and position?
  This is what i did, which solved part of the question.</p>
  
  <p>The Code is given below.</p>
  
  <pre><code>Public Class Form1
  Dim numbers(4) As Integer
  Dim Group1Score, Group2Score, Group3Score, Group4Score, Group5Score, Group6Score As Integer
  
  Dim Group1Title, Group2Title, Group3Title, Group4Title, Group5Title, Group6Title As String
  Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
      Group1Score = 4
      Group2Score = 8
      Group3Score = 15
      Group4Score = 16
      Group5Score = 34
  
      numbers(0) = Group1Score
      numbers(1) = Group2Score
      numbers(2) = Group3Score
      numbers(3) = Group4Score
      numbers(4) = Group5Score
  
      Array.Sort(numbers)
      Array.Reverse(numbers)
  
  End Sub
  
  Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
      Label4.Text = numbers(0)
      Label5.Text = numbers(1)
      Label6.Text = numbers(2)
      Label7.Text = numbers(3)
      Label8.Text = numbers(4)
  
      'Next
  End Sub
  End Class
  </code></pre>
  
  <p>any help please?</p>