Easy Java 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        StringBuilder ans = new StringBuilder("");\n\n        ArrayList<Character> arr = new ArrayList<>();\n\n        int n = s.length();\n\n        for(int i=0; i<n; i++){\n            char ch = s.charAt(i);\n            if(ch==\'A\'||ch==\'E\'||ch==\'I\'||ch==\'O\'||ch==\'U\'||ch==\'a\'||ch==\'e\'||ch==\'i\'||ch==\'o\'||ch==\'u\') arr.add(ch);\n        }\n\n        Collections.sort(arr);\n        int idx = 0;\n        for(int i=0; i<n; i++){\n            char ch = s.charAt(i);\n            if(ch==\'A\'||ch==\'E\'||ch==\'I\'||ch==\'O\'||ch==\'U\'||ch==\'a\'||ch==\'e\'||ch==\'i\'||ch==\'o\'||ch==\'u\'){\n                ans.append(arr.get(idx++));\n            }else{\n                ans.append(ch);\n            }\n        }\n        return ans.toString();\n    }\n}\n```
['Java']