One Line
\n\nclass Solution {\npublic:\n    vector<int> sortArrayByParity(vector<int>& nums) \n    {\n        sort(nums.begin(),nums.end(),[&](const int &a,const int &b 
\n```\nclass Solution {\npublic:\n    vector<int> sortArrayByParity(vector<int>& nums) \n    {\n        sort(nums.begin(),nums.end(),[&](const int &a,const int &b )\n             {\n                 return a%2 < b%2;\n             })    ;\n\t\t\t \n        return nums;\n    }\n};\n```
['C']