fixed a bug in sorting the statistics by week.