Think if I start with an explanation first it will help... I have a competition in which there are 3 winners in each County (The ones with the highest votes).
My current array looks like this:
Array
(
[0] => Array
(
[entryID] => 1
[votes] => 3
[countyID] => 46
)
[1] => Array
(
[entryID] => 4
[votes] => 1
[countyID] => 2
)
[2] => Array
(
[entryID] => 2
[votes] => 0
[countyID] => 46
)
[3] => Array
(
[entryID] => 5
[votes] => 0
[countyID] => 46
)
)
What I need to do here is figure out a way of finding the top 3 highest votes within each of the CountyID's.
Any ideas how I can achieve this? Thanks, Scott.