JAVA
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        ArrayList<Character> vow = new ArrayList<>();\n        String x = "";\n\n        for(int i=0; i<s.length(); i++){\n            char j = s.charAt(i);\n            if(j==\'a\'||j==\'e\'||j==\'i\'||j==\'o\'||j==\'u\'||j==\'A\'||j==\'E\'||j==\'I\'||j==\'O\'||j==\'U\')\n                vow.add(j);  \n        }\n        Collections.sort(vow);\n        Iterator<Character> itr = vow.iterator();\n        \n        for(int i=0; i<s.length(); i++){\n            char j = s.charAt(i);\n            if(j==\'a\'||j==\'e\'||j==\'i\'||j==\'o\'||j==\'u\'||j==\'A\'||j==\'E\'||j==\'I\'||j==\'O\'||j==\'U\'){\n               if(itr.hasNext()) x += itr.next();\n            }\n            else x += s.charAt(i);\n        }\n        return x;\n    }\n}\n```
['Java']