added group by day/month duration asc/desc sorts. fixed some bugs
small fixes