Changes order of dates in popup