Sort years before creating weeks