Sorry Darrent I could not make it clear.
Sort by date, bitsin,bitsout, compare bitsin and bitsout and keep the highest one, sort the highest value which you get from previous comparision
Out put should look like as
date, bitsin, bitsout, highest one, sort highest one
01/01/2006 00:03:12, 210, 212, 212, 212
I'm sorry but I honestly don't understand what it is that you want. I've read it through over and over again and I just don't get it. Hopefully somebody else will be able to understand and point you in the right direction.