This is TextBuddy with sort method

It passes all test cases