✅ Easy C++ Solution
Code\n\nstring removeCons(string s)\n{\n    int n = s.size();\n    string ans;\n    for (char c : s)\n    {\n        if(c == \'a\' || c == \'e\' || c == \'i\' |
# Code\n```\nstring removeCons(string s)\n{\n    int n = s.size();\n    string ans;\n    for (char c : s)\n    {\n        if(c == \'a\' || c == \'e\' || c == \'i\' || c == \'o\' || c == \'u\' || c == \'A\' || c == \'E\' || c == \'I\' || c == \'O\' || c == \'U\')\n        {\n            ans.push_back(c);\n        }\n    }\n    return ans;\n}\n\nstring getDone(string temp,string s)\n{\n    int n = s.size();\n    int j=0;\n    string ans;\n    int i=0;\n    for (char c : s)\n    {\n        if(!(c == \'a\' || c == \'e\' || c == \'i\' || c == \'o\' || c == \'u\' || c == \'A\' || c == \'E\' || c == \'I\' || c == \'O\' || c == \'U\'))\n        {\n            ans.push_back(c);\n            i++;\n        }\n        else\n        {\n            ans.push_back(temp[j]);\n            j++;\n        }\n    }\n    return ans;\n}\n\nclass Solution {\npublic:\n    string sortVowels(string s) {\n        string ans = s;\n        ans = removeCons(ans);\n        sort(ans.begin(),ans.end());\n        ans = getDone(ans,s);\n        return ans;\n    }\n};\n```
['C++']