Python easy solution
\n    def frequencySort(self, nums: List[int]) -> List[int]:\n        nums.sort(reverse=True)\n        ans = sorted(nums, key = nums.count)\n        return ans
\n    def frequencySort(self, nums: List[int]) -> List[int]:\n        nums.sort(reverse=True)\n        ans = sorted(nums, key = nums.count)\n        return ans
[]