fix chronological order