Set failureIndex as the sorting parameter in history