Crystal Report sorting a formula

SOLVED

In Crystal Report I'm trying to Record Sort Export a formula that I made but that formula doesn't show up like the other formulas that I built. Does Crystal have a problem sorting formulas that uses the OR statement or a formula that refers to other formulas? The formula works great, I just cant get it to sort "Alert"

if {@AlertAirORMD} = "AIR_ORMD" or

{@Alert_X}  = "No Export" or

{@RestrictORMD} = "NOT_USA_ORMD" or

{@FormRest2 2} = "Alert_Brand"

then "Alert"
else
""