Fix problem sorting by month on log viewer