sorting properly in history for challenge events