I have tried to write simpler and easy to understand code - Python
\nclass Solution:\n    def sortVowels(self, s: str) -> str:\n        vowelCount = {\'A\': 0, \'E\': 0, \'I\': 0, \'O\': 0, \'U\': 0, \'a\': 0, \'e\': 0, \'i\': 
```\nclass Solution:\n    def sortVowels(self, s: str) -> str:\n        vowelCount = {\'A\': 0, \'E\': 0, \'I\': 0, \'O\': 0, \'U\': 0, \'a\': 0, \'e\': 0, \'i\': 0, \'o\': 0, \'u\': 0}\n        vowels = [\'A\', \'E\', \'I\', \'O\', \'U\', \'a\', \'e\', \'i\', \'o\', \'u\']\n        for char in s:\n            if char in vowelCount:\n                vowelCount[char] += 1\n        \n        i = 0\n        ans = \'\'\n        for char in s:\n            if char in vowelCount:\n                    while vowelCount[vowels[i]] == 0:\n                        i += 1\n                    ans += vowels[i]\n                    vowelCount[vowels[i]] -= 1\n            else:\n                ans += char\n        return ans\n```
['Python']