ensure date axis data sorted