Go Solution
go\nfunc frequencySort(nums []int) []int {\n    seen := map[int]int{}\n\n\tfor _, v := range nums {\n\t\tseen[v]++\n\t}\n\n    sort.Slice(nums, func(i, j int) b
```go\nfunc frequencySort(nums []int) []int {\n    seen := map[int]int{}\n\n\tfor _, v := range nums {\n\t\tseen[v]++\n\t}\n\n    sort.Slice(nums, func(i, j int) bool{\n        if seen[nums[i]] == seen[nums[j]] {\n            return nums[j] < nums[i]\n        }\n        \n        return seen[nums[i]] < seen[nums[j]]\n    })\n\n\treturn nums\n}\n \n```
['Go']