Sort commits in order of days.