Added an initial if statement to handle our group by date.
Added an initial if statement to handle our group by date.

goraSi/waterline-sequel,anotherpit/waterline-sequel,balderdashy/waterline-sequel,jianpingw/waterline-sequel