Girlfriend got disrespectful through text. We came to a disagreement on something, she got pissy and ended the conversation by being disrespectful. She was sarcastic and worded the text in a way that intentionally made me sound like a dick, just to make me sound like a dick. I replied by calmly calling her out on her shit, tl;dr version is that what she said was unnecessarily disrespectful and the sarcasm was petty. She's mad about it, saying that I'm acting like I'm better than her and I shouldn't have called her either of those things. I was mean. She was right and I was mean, she didn't POSSIBLY do anything wrong.

So, what should my next move be? Anyone? What should I have done differently in the first place? Any kind of tips or criticism or pointers are welcome and appreciated. I understand that dumping her is a valid option, but I'm looking for a way to keep the girl and whilst dealing with the problem. Anyways, thankya kindly.