Sarcasm is a form of irony - one meaning of irony is saying one thing, and meaning another. "Sure, that's a great idea" is both sarcastic and ironic (although not ironic in the sense people most commonly use the word, which non-ironically, is not that ironic).