fix chronical order