I need some mathmatical assistnace in finding the modal values of a list of numbers using VB.NET 2002 code. Say that you have a list of numbers:

10, 25, 30, 30, 20, 35, 20
20, 30, 25, 10, 25, 30, 30
35, 9, 7, 30, 10, 25, 20

now, to calculate the modal value, you must count the repetition of each number and the number that is repeated the most is the highest modal value, the next highest number that is repeated is the next highest modal value etc... so on and so on. In this list of numbers the number 10 is repeated 3 times and 25 is repeated 4 times and 30 is repeated 6 times and 20 is repeated 4 times and 35 is repeated 2 times and 20 is repeated 3 times and 9, 7 are only shown 1 time each.

From highest to lowest modal value the numbers would be:

30
25
20
10
20
35
9
7

Any one know of how this could be done and an example would be great on searching a list like this.