Sort:  

the Alamo happened before the Civil War and was instrumental in Mexico eventually agreeing to sell Texas to the USA rather than fight over it.