implement merge one day function and sort by total number of accesses