[eluser]pickupman[/eluser]
[url="http://php.net/manual/en/function.array-count-values.php"]array_count_values[/url] would be used to combine/count how many times a value exists in an array. Say you have a log field in a result array. You could use to find how many times a field value exists in the table, and then asort() to sort the array. You would then have an ascending report of values.