I have an array with weights(in pounds).

I have already sorted the array so it is descending sequence (ie. Heaviest weight is in array(0), next heaviest in array(1) etc).

What I want is to find the last item of the 3 heaviest... and no it is not the first 3. The weights could be the same, so I want the 3 heaveist Equal weights.

So if my array was something like....
128(0)
126(1)
125(2)
125(3)
123(4)
122(5)

Then I would be looking to return 3

simarly if the list was something like this
128(0)
127(1)
127(2)
127(3)
127(4)
122(5)
then I would be looking to return 4

128(0)
128(1)
126(2)
125(3)
125(4)
122(5)
Would return 2


I am processing multiple arrays, in which each array could be of any size although each time I do know how big that particular array is

Any ideas out there ?

it is VB6 btw.

Thanks in advance

Bry