Python one line solution
Python :\n\n\ndef frequencySort(self, nums: List[int]) -> List[int]:\n\treturn sorted(sorted(nums, reverse=True), key=nums.count)\n\n\nLike it ? please upvote !
**Python :**\n\n```\ndef frequencySort(self, nums: List[int]) -> List[int]:\n\treturn sorted(sorted(nums, reverse=True), key=nums.count)\n```\n\n**Like it ? please upvote !**
['Python', 'Python3']