$sql="select sum(hits), dateField from table where method = 'web'
group by dateField
order by dateField desc";
Why would you get more data than what you need...it adds a layer of complexity that doesn't need to be there...and i bet it make soing thru your arrays hell...
rule of thumb...where you can, let the db do all the work...its much faster than code in sorting, adding, excluding and manipulating resultsets