group purchases by date