Question Athlete standing sorting

albertino

New member
Joined
Feb 5, 2010
Messages
1
Programming Experience
Beginner
Hello everybody, this is my first thread. I'm new to vb. I'll try to explain my problem.....I created a windows form for a Karate kata tournament.

I have 6 values. 1. Athlete name (string) 2. TotalVote (double) 3. MinVote (double) 4. MaxVote (double) and I have to create the standing....

All this values are in separate arrays and I am able to create a standing with array.sort() method.

The problem is if I have an ex equo (2 athletes with the same total). In this case I have to create the standing with the maximum value of MinVote and if it is still ex equo with the maximum of MaxValue.

Should be like

Pos Name VTot VMin VMax

1 Giovanni Grasso 23,1
2 Gus Hidding 23,0 7,6 7,7
3 Mario Rossi 23,0 7,6 7,6
4 Roberto Neri 21,6
5 Luca Gissone 20,2 6,7
6 Maffini Alberto 20,2 6,5
7 Luigi Bianchi 20,1

Any one can hel me ?
 
Back
Top