Formulate an answer to this elaborate question: Which battle occurred earlier, Battle of Leyte or Battle of Gettysburg?
Battle of Gettysburg