Easiest Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public String sortVowels(String s) {\n        int n = s.length();\n        Character[] str = new Character[n];\n        char[] c = s.toCharArray();\n        int vowidx = 0;\n\n        for(int i=0; i<c.length; i++){\n            if(c[i] == \'a\' || c[i]==\'e\' || c[i]== \'i\' || c[i] == \'o\' || c[i] == \'u\' || c[i] == \'A\' || c[i]==\'E\' || c[i]== \'I\' || c[i] == \'O\' || c[i] == \'U\'){\n                str[vowidx++] = c[i];\n            }\n        }\n        Arrays.sort(str,0,vowidx);\n        vowidx = 0;\n        for(int i=0; i<c.length; i++){\n            if(c[i] == \'a\' || c[i]==\'e\' || c[i]== \'i\' || c[i] == \'o\' || c[i] == \'u\' || c[i] == \'A\' || c[i]==\'E\' || c[i]== \'I\' || c[i] == \'O\' || c[i] == \'U\'){\n                c[i] = str[vowidx++];\n            }\n        }\n        return new String(c);\n        \n    }\n}\n```
['Java']