Summary:
The "alert" order is similar to "fortify," except that the unit will "wake up" when it sees a nearby enemy unit. The wakened unit retains the fortification bonus as long as it doesn't move or attack (so if you order it to go into alert mode again or to pass its turn it keeps the bonus).