||Easy Java Solution using ArrayList||
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> vowels=new ArrayList<>();\n        ArrayList<Integer> position=new ArrayList<>();\n\n        for(int i=0;i<s.length();i++)\n        {\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            {\n                vowels.add(ch);\n                position.add(i);\n            }\n        }\n\n        Collections.sort(vowels);\n        char result[]=s.toCharArray();\n        for(int i=0;i<position.size();i++)\n        {\n            result[position.get(i)]=vowels.get(i);\n        }\n\n        return new String(result);\n    }\n}\n```
['Java']